From 607e8cb11a0d8607c9e51faacb6db1a9df3c4fb4 Mon Sep 17 00:00:00 2001 From: Ren RenJuan Date: Thu, 9 Jan 2014 01:46:29 +0000 Subject: [PATCH] * --- ACTK1_0/session/TLSSocket.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ACTK1_0/session/TLSSocket.cpp b/ACTK1_0/session/TLSSocket.cpp index 8856327..da83aa1 100644 --- a/ACTK1_0/session/TLSSocket.cpp +++ b/ACTK1_0/session/TLSSocket.cpp @@ -39,8 +39,9 @@ TLSSocket::TLSSocket(SSL_CTX* ctx, int sock, const string& host, } if ((ret = SSL_get_verify_result(ssl)) != X509_V_OK) - { - SSLException e("Certificate Verify failed", ssl, ret); + {char why[100]; sprintf(why,"Cert verify fail: %d",ret); + + SSLException e(why, ssl, ret); SSL_shutdown(ssl); throw e; }