This commit is contained in:
parent
5cd7a46f09
commit
607e8cb11a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue