summaryrefslogtreecommitdiff
path: root/src/backend/parser/scansup.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-07-14 17:09:54 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-07-14 17:09:54 +0000
commit89ddf54fe5d6a374ffdd6f1eab74beb286ba0d23 (patch)
treeb769baff7a1d513d2bfc5adea297d8ddee7aca89 /src/backend/parser/scansup.c
parentf53bc2e78d206290c2b40b6aac0b208f4d115e20 (diff)
Allow full SSL certificate verification (wherein libpq checks its host name
parameter against server cert's CN field) to succeed in the case where both host and hostaddr are specified. As with the existing precedents for Kerberos, GSSAPI, SSPI, it is the calling application's responsibility that host and hostaddr match up --- we just use the host name as given. Per bug #5559 from Christopher Head. In passing, make the error handling and messages for the no-host-name-given failure more consistent among these four cases, and correct a lie in the documentation: we don't attempt to reverse-lookup host from hostaddr if host is missing. Back-patch to 8.4 where SSL cert verification was introduced.
Diffstat (limited to 'src/backend/parser/scansup.c')
0 files changed, 0 insertions, 0 deletions