summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport/socket/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.c')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index 030a37961b6..24a8c8967ce 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -341,11 +341,16 @@ ssl_setup_connection (rpc_transport_t *this, int server)
NID_commonName, peer_CN, sizeof(peer_CN)-1);
peer_CN[sizeof(peer_CN)-1] = '\0';
gf_log(this->name,GF_LOG_INFO,"peer CN = %s", peer_CN);
+ gf_log (this->name, GF_LOG_INFO,
+ "SSL verification succeeded (client: %s)",
+ this->xl_private?this->xl_private->client_uid:"");
return gf_strdup(peer_CN);
/* Error paths. */
ssl_error:
- gf_log(this->name,GF_LOG_ERROR,"SSL connect error");
+ gf_log (this->name, GF_LOG_ERROR,
+ "SSL connect error (client: %s)",
+ this->xl_private?this->xl_private->client_uid:"");
ssl_dump_error_stack(this->name);
free_ssl:
SSL_free(priv->ssl_ssl);