pgsql: Use abstracted SSL API in server connection log messages - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Use abstracted SSL API in server connection log messages
Date
Msg-id E1ef5Ms-00080Z-Hc@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c1869542b3a4da4b12cace2253ef177da761c00d

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c | 16 ++++++++--------
src/backend/postmaster/pgstat.c       |  4 ++--
src/backend/utils/init/postinit.c     | 22 ++++++++++++++--------
src/include/libpq/libpq-be.h          |  4 ++--
4 files changed, 26 insertions(+), 20 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove byte-masking macros for Datum conversion macros
Next
From: Robert Haas
Date:
Subject: pgsql: pageinspect: Fix use of wrong memory context byhash_page_items.