summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.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:13 +0200
commitd3c980694fa4523a8aa66b57343f031c4b6b8425 (patch)
tree36b6c9aaf826fd4ae73a431ae457ed0bd5b653d0 /src/bin/psql/command.c
parent350651905decd60637e583837d3bb3aa5d9164b6 (diff)
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/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index cede72a5d6c..161de75b0ac 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -1800,8 +1800,9 @@ printSSLInfo(void)
return; /* no SSL */
SSL_get_cipher_bits(ssl, &sslbits);
- printf(_("SSL connection (protocol: %s, cipher: %s, bits: %d)\n"),
- SSL_get_version(ssl), SSL_get_cipher(ssl), sslbits);
+ printf(_("SSL connection (protocol: %s, cipher: %s, bits: %d, compression: %s)\n"),
+ SSL_get_version(ssl), SSL_get_cipher(ssl), sslbits,
+ SSL_get_current_compression(ssl) ? _("on") : _("off"));
#else
/*