diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2014-10-15 09:54:21 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2015-01-16 21:32:34 +0100 |
commit | 07d7fc7b2b84ed36419abf8802b6de29f6e675cc (patch) | |
tree | a7f50bf4d864dba2c9bdf8fc14e422f255c827c8 | |
parent | f7b12150ce515fe1facdf3b231a05e81ff4f497c (diff) | |
download | fetchmail-07d7fc7b2b84ed36419abf8802b6de29f6e675cc.tar.gz fetchmail-07d7fc7b2b84ed36419abf8802b6de29f6e675cc.tar.bz2 fetchmail-07d7fc7b2b84ed36419abf8802b6de29f6e675cc.zip |
Also report SSL/TLS protocol version in verbose mode.
-rw-r--r-- | socket.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); } } |