OSDN Git Service

If SSL negotiation fails and SSLMODE is 'prefer', then retry without SSL.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Nov 2006 16:28:00 +0000 (16:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Nov 2006 16:28:00 +0000 (16:28 +0000)
commitbcd713a6189188927dec7abda6cdcd6719c990d1
tree7f1b9041fc1dfcbdff4d69f02baa03f071c4ba9a
parentcc6c10a7a0245b87fa49e1369bc94c88fcbdb987
If SSL negotiation fails and SSLMODE is 'prefer', then retry without SSL.
Negotiation failure is only likely to happen if one side or the other is
misconfigured, eg. bad client certificate.  I'm not 100% convinced that
a retry is really the best thing, hence not back-patching this fix for now.
Per gripe from Sergio Cinos.
src/interfaces/libpq/fe-connect.c