summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoshua Judson Rosen2014-10-20 01:18:48 -0400
committerJoshua Judson Rosen2014-10-20 01:18:48 -0400
commitc9d9807956a09e5219366abdad39901786a53718 (patch)
tree79c6cf9b418b0720fe8d0637d2e89a29ee1928f2 /src
parentafclient: make "SERVER SSL" log show which protocol version is in use, if any (diff)
downloadapf-c9d9807956a09e5219366abdad39901786a53718.tar.gz
afserver: log which protocol version was accepted by SSL_accept.
Diffstat (limited to 'src')
-rw-r--r--src/afserver.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/afserver.c b/src/afserver.c
index 4c00d26..d769b8a 100644
--- a/src/afserver.c
+++ b/src/afserver.c
@@ -1465,9 +1465,10 @@ main(int argc, char **argv)
continue;
}
default: {
- aflog(LOG_T_CLIENT, LOG_I_DEBUG,
- "realm[%s]: new Client[%s]: ACCEPTED by SSL_accept",
- get_realmname(config, j), get_clientname(pointer, k));
+ aflog(LOG_T_CLIENT, LOG_I_DEBUG, "realm[%s]: new Client[%s]: ACCEPTED by SSL_accept[%s]",
+ get_realmname(config, j),
+ get_clientname(pointer, k),
+ SSL_get_version(SslFd_get_ssl(ConnectClient_get_sslFd(srClientsTable[k]))));
ConnectClient_set_state(srClientsTable[k], CONNECTCLIENT_STATE_AUTHORIZING);
continue;
}
@@ -2145,9 +2146,10 @@ main(int argc, char **argv)
continue;
}
default: {
- aflog(LOG_T_MANAGE, LOG_I_DEBUG,
- "realm[%s]: new Client[%s] (ra): ACCEPTED by SSL_accept",
- get_realmname(config, j), get_raclientname(pointer, k));
+ aflog(LOG_T_MANAGE, LOG_I_DEBUG, "realm[%s]: new Client[%s] (ra): ACCEPTED by SSL_accept[%s]",
+ get_realmname(config, j),
+ get_raclientname(pointer, k),
+ SSL_get_version(SslFd_get_ssl(ConnectClient_get_sslFd(srClientsTable[k]))));
ConnectClient_set_state(srRaClientsTable[k], CONNECTCLIENT_STATE_AUTHORIZING);
continue;
}