]> granicus.if.org Git - postgresql/commitdiff
psql: Mention SSL protocol version in \conninfo.
authorNoah Misch <noah@leadboat.com>
Sat, 25 Jan 2014 00:23:56 +0000 (19:23 -0500)
committerNoah Misch <noah@leadboat.com>
Sat, 25 Jan 2014 00:23:56 +0000 (19:23 -0500)
Marko Kreen, reviewed by Wim Lewis.

src/bin/psql/command.c

index f498cdfee7638492faa3d09152165ed895d29c9c..b26e28006ec4f04e541a562526912d98c532b638 100644 (file)
@@ -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
 
        /*