From 3a5313265d53322519b5edce018ebdea14062bf9 Mon Sep 17 00:00:00 2001
From: Noah Misch <noah@leadboat.com>
Date: Fri, 24 Jan 2014 19:23:56 -0500
Subject: [PATCH] psql: Mention SSL protocol version in \conninfo.

Marko Kreen, reviewed by Wim Lewis.
---
 src/bin/psql/command.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index f498cdfee76..b26e28006ec 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
 
 	/*
-- 
GitLab