Fix bogus behavior of PQsslAttribute(conn, "library").
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 29 Sep 2022 21:28:09 +0000 (17:28 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 29 Sep 2022 21:28:09 +0000 (17:28 -0400)
commit80a05679d5a400b8f995740c175f8bdb060bb05c
treec30004c76eae7e7102d76fd43cbd98274a09e03d
parent551aa6b7b9f3b78e7b6cbab1fea70947fa7f4966
Fix bogus behavior of PQsslAttribute(conn, "library").

Commit ebc8b7d44 intended to change the behavior of
PQsslAttribute(NULL, "library"), but accidentally also changed
what happens with a non-NULL conn pointer.  Undo that so that
only the intended behavior change happens.  Clarify some
associated documentation.

Per bug #17625 from Heath Lord.  Back-patch to v15.

Discussion: https://postgr.es/m/17625-fc47c78b7d71b534@postgresql.org
doc/src/sgml/libpq.sgml
src/interfaces/libpq/fe-secure-openssl.c