From b0d4313bc85dc8fc1449e52cd63a0a09db89a3ff Mon Sep 17 00:00:00 2001 From: Joshua Judson Rosen Date: Mon, 20 Oct 2014 01:06:15 -0400 Subject: afclient: make "SERVER SSL" log show which protocol version is in use, if any (rather than just "yes") --- src/afclient.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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, -- cgit v1.1