This commit is contained in:
Ren RenJuan 2014-01-09 01:46:29 +00:00
parent 5cd7a46f09
commit 607e8cb11a
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}