pgsql: Use abstracted SSL API in server connection log messages

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use abstracted SSL API in server connection log messages
Date: 2018-01-26 14:52:38
Message-ID: E1ef5Ms-00080Z-Hc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)yesql(dot)se>
Reviewed-by: Michael Paquier <michael(dot)paquier(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2018-01-26 15:04:10 pgsql: pageinspect: Fix use of wrong memory context by hash_page_items.
Previous Message Peter Eisentraut 2018-01-26 14:20:54 pgsql: Remove byte-masking macros for Datum conversion macros