]> granicus.if.org Git - postgresql/commit - src/interfaces/libpq/fe-secure.c
Improve libpq's error reporting for SSL failures.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Jul 2011 20:29:07 +0000 (16:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Jul 2011 20:29:07 +0000 (16:29 -0400)
commitfee476da952a1f02f7ccf6e233fb4824c2bf6af4
tree1b19ff0e0542d2ffc97afdc8561bf0c7efd24ca1
parentd0c23026b2499ba9d6797359241ade076a5a677d
Improve libpq's error reporting for SSL failures.

In many cases, pqsecure_read/pqsecure_write set up useful error messages,
which were then overwritten with useless ones by their callers.  Fix this
by defining the responsibility to set an error message to be entirely that
of the lower-level function when using SSL.

Back-patch to 8.3; the code is too different in 8.2 to be worth the
trouble.
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-secure.c