diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2016-05-06 10:03:53 -0400 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2016-06-30 15:24:20 -0700 |
commit | d308fb5e152d8c908bf4f5da81f553fbe3d0400a (patch) | |
tree | 13802619c916ca41ef09497f57427d59fecbdac5 /rpc | |
parent | 09caa0c054c85f030c194362cbf3c687b4a56106 (diff) |
socket: log the client identifier in ssl connect
Change-Id: I4b463ecafb66de16cbe7ed23fae800bb1204f829
BUG: 1333912
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.org/14242
Tested-by: Vijay Bellur <vbellur@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-transport/socket/src/socket.c | 7 |
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); |