diff options
author | Joshua Judson Rosen | 2014-10-20 01:06:15 -0400 |
---|---|---|
committer | Joshua Judson Rosen | 2014-10-20 01:06:15 -0400 |
commit | b0d4313bc85dc8fc1449e52cd63a0a09db89a3ff (patch) | |
tree | ef7104c975af51bd960294c708abf44250b57fd6 | |
parent | afclient: use whatever version of TLS (or better) we can. (diff) | |
download | apf-b0d4313bc85dc8fc1449e52cd63a0a09db89a3ff.tar.gz |
afclient: make "SERVER SSL" log show which protocol version is in use, if any
(rather than just "yes")
-rw-r--r-- | src/afclient.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/afclient.c b/src/afclient.c index 9eaee7f..3a97b9b 100644 --- a/src/afclient.c +++ b/src/afclient.c @@ -837,10 +837,12 @@ main(int argc, char **argv) aflog(LOG_T_CLIENT, LOG_I_INFO, "CLIENT STARTED mode: %s", (ClientRealm_get_clientMode(pointer) == CLIENTREALM_MODE_UDP) ? "udp" : "tcp"); - aflog(LOG_T_CLIENT, LOG_I_INFO, - "SERVER SSL: %s, ZLIB: %s, MODE: %s", (TYPE_IS_SSL(ClientRealm_get_realmType(pointer))) ? "yes" : "no", - (TYPE_IS_ZLIB(ClientRealm_get_realmType(pointer))) ? "yes" : "no", - (TYPE_IS_TCP(ClientRealm_get_realmType(pointer))) ? "tcp" : "udp"); + aflog(LOG_T_CLIENT, LOG_I_INFO, "SERVER SSL: %s, ZLIB: %s, MODE: %s", + (TYPE_IS_SSL(ClientRealm_get_realmType(pointer)) ? + SSL_get_version(SslFd_get_ssl(ClientRealm_get_masterSslFd(pointer))) + : "no"), + (TYPE_IS_ZLIB(ClientRealm_get_realmType(pointer))) ? "yes" : "no", + (TYPE_IS_TCP(ClientRealm_get_realmType(pointer))) ? "tcp" : "udp"); aflog(LOG_T_CLIENT, LOG_I_INFO, "SERVER MULTI: %s", (TYPE_IS_SUPPORTED_MULTI(ClientRealm_get_realmType(pointer))) ? "yes" : "no"); aflog(LOG_T_CLIENT, LOG_I_NOTICE, |