aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/postinit.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2014-07-15 15:07:38 +0200
committerMagnus Hagander <magnus@hagander.net>2014-07-15 15:12:05 +0200
commitc93bf8c6ccf7ef1cec6b01fec1888f84831295ee (patch)
tree5eb0e94b140324e6c7ffcb37fff8d4ca835decf3 /src/backend/utils/init/postinit.c
parentd90ad5d8abe7947520686239a7547f2eb8cc9a8d (diff)
downloadpostgresql-c93bf8c6ccf7ef1cec6b01fec1888f84831295ee.tar.gz
postgresql-c93bf8c6ccf7ef1cec6b01fec1888f84831295ee.zip
Include SSL compression status in psql banner and connection logging
Both the psql banner and the connection logging already included SSL status, cipher and bitlength, this adds the information about compression being on or off.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r--src/backend/utils/init/postinit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index ed936d7fad8..28243ad58f9 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -234,8 +234,9 @@ PerformAuthentication(Port *port)
#ifdef USE_SSL
if (port->ssl)
ereport(LOG,
- (errmsg("replication connection authorized: user=%s SSL enabled (protocol=%s, cipher=%s)",
- port->user_name, SSL_get_version(port->ssl), SSL_get_cipher(port->ssl))));
+ (errmsg("replication connection authorized: user=%s SSL enabled (protocol=%s, cipher=%s, compression=%s)",
+ port->user_name, SSL_get_version(port->ssl), SSL_get_cipher(port->ssl),
+ SSL_get_current_compression(port->ssl) ? _("on") : _("off"))));
else
#endif
ereport(LOG,
@@ -247,8 +248,9 @@ PerformAuthentication(Port *port)
#ifdef USE_SSL
if (port->ssl)
ereport(LOG,
- (errmsg("connection authorized: user=%s database=%s SSL enabled (protocol=%s, cipher=%s)",
- port->user_name, port->database_name, SSL_get_version(port->ssl), SSL_get_cipher(port->ssl))));
+ (errmsg("connection authorized: user=%s database=%s SSL enabled (protocol=%s, cipher=%s, compression=%s)",
+ port->user_name, port->database_name, SSL_get_version(port->ssl), SSL_get_cipher(port->ssl),
+ SSL_get_current_compression(port->ssl) ? _("on") : _("off"))));
else
#endif
ereport(LOG,