aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2014-10-15 09:54:21 +0200
committerMatthias Andree <matthias.andree@gmx.de>2015-01-16 21:32:34 +0100
commit07d7fc7b2b84ed36419abf8802b6de29f6e675cc (patch)
treea7f50bf4d864dba2c9bdf8fc14e422f255c827c8
parentf7b12150ce515fe1facdf3b231a05e81ff4f497c (diff)
downloadfetchmail-07d7fc7b2b84ed36419abf8802b6de29f6e675cc.tar.gz
fetchmail-07d7fc7b2b84ed36419abf8802b6de29f6e675cc.tar.bz2
fetchmail-07d7fc7b2b84ed36419abf8802b6de29f6e675cc.zip
Also report SSL/TLS protocol version in verbose mode.
-rw-r--r--socket.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index 87f14486..c55bd6e1 100644
--- a/socket.c
+++ b/socket.c
@@ -1026,13 +1026,17 @@ int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck
SSL_CIPHER const *sc;
int bitsmax, bitsused;
+ const char *ver;
+
+ ver = SSL_get_version(_ssl_context[sock]);
+
sc = SSL_get_current_cipher(_ssl_context[sock]);
if (!sc) {
report (stderr, GT_("Cannot obtain current SSL/TLS cipher - no session established?\n"));
} else {
bitsused = SSL_CIPHER_get_bits(sc, &bitsmax);
- report(stdout, GT_("SSL/TLS: using cipher %s, %d/%d secret/processed bits\n"),
- SSL_CIPHER_get_name(sc), bitsused, bitsmax);
+ report(stdout, GT_("SSL/TLS: using protocol %s, cipher %s, %d/%d secret/processed bits\n"),
+ ver, SSL_CIPHER_get_name(sc), bitsused, bitsmax);
}
}