git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8cd7627) | patch
Enable SSL library detection via PQsslAttribute()
2022年3月29日 12:02:45 +0000 (14:02 +0200)
2022年3月29日 12:02:45 +0000 (14:02 +0200)
commit ebc8b7d4416d8e0dfb7c05132ef6182fd3daf885
Enable SSL library detection via PQsslAttribute()

Currently, libpq client code must have a connection handle
before it can query the "library" SSL attribute. This poses
problems if the client needs to know what SSL library is in
use before constructing a connection string.

Allow PQsslAttribute(NULL, "library") to return the library
in use -- currently, just "OpenSSL" or NULL. The new behavior
is announced with the LIBPQ_HAS_SSL_LIBRARY_DETECTION feature
macro, allowing clients to differentiate between a libpq that
was compiled without SSL support and a libpq that's just too
old to tell.

Author: Jacob Champion <pchampion@vmware.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/4c8b76ef434a96627170a31c3acd33cbfd6e41f1.camel@vmware.com
doc/src/sgml/libpq.sgml diff | blob | blame | history
src/interfaces/libpq/Makefile diff | blob | blame | history
src/interfaces/libpq/fe-secure-openssl.c diff | blob | blame | history
src/interfaces/libpq/libpq-fe.h diff | blob | blame | history
src/interfaces/libpq/t/002_api.pl [new file with mode: 0644] blob
src/interfaces/libpq/test/.gitignore diff | blob | blame | history
src/interfaces/libpq/test/Makefile diff | blob | blame | history
src/interfaces/libpq/test/testclient.c [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /