]> granicus.if.org Git - postgresql/commit
Use abstracted SSL API in server connection log messages
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 25 Jan 2018 13:58:00 +0000 (08:58 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 26 Jan 2018 14:50:46 +0000 (09:50 -0500)
commitc1869542b3a4da4b12cace2253ef177da761c00d
treeb1b726f9a2851dce06fd1d3f96f27747bfc74b86
parenta6ef00b5c3c4a287e03b634d328529b69cc1e770
Use abstracted SSL API in server connection log messages

The existing "connection authorized" server log messages used OpenSSL
API calls directly, even though similar abstracted API calls exist.
Change to use the latter instead.

Change the function prototype for the functions that return the TLS
version and the cipher to return const char * directly instead of
copying into a buffer.  That makes them slightly easier to use.

Add bits= to the message.  psql shows that, so we might as well show the
same information on the client and server.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
src/backend/libpq/be-secure-openssl.c
src/backend/postmaster/pgstat.c
src/backend/utils/init/postinit.c
src/include/libpq/libpq-be.h