From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Use abstracted SSL API in server connection log messages
Date: Fri, 26 Jan 2018 14:52:38 +0000
Message-ID: <E1ef5Ms-00080Z-Hc@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Use abstracted SSL API in server connection log messages
In-Reply-To: <E1ef5Ms-00080Z-Hc@gemulon.postgresql.org>
References: <E1ef5Ms-00080Z-Hc@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox