From: Noah Misch Date: Sat, 25 Jan 2014 00:23:56 +0000 (-0500) Subject: psql: Mention SSL protocol version in \conninfo. X-Git-Tag: REL9_4_BETA1~625 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a5313265d53322519b5edce018ebdea14062bf9;p=postgresql psql: Mention SSL protocol version in \conninfo. Marko Kreen, reviewed by Wim Lewis. --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index f498cdfee7..b26e28006e 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1798,8 +1798,8 @@ printSSLInfo(void) return; /* no SSL */ SSL_get_cipher_bits(ssl, &sslbits); - printf(_("SSL connection (cipher: %s, bits: %d)\n"), - SSL_get_cipher(ssl), sslbits); + printf(_("SSL connection (protocol: %s, cipher: %s, bits: %d)\n"), + SSL_get_version(ssl), SSL_get_cipher(ssl), sslbits); #else /*