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)
|
if ((ret = SSL_get_verify_result(ssl)) != X509_V_OK)
|
||||||
{
|
{char why[100]; sprintf(why,"Cert verify fail: %d",ret);
|
||||||
SSLException e("Certificate Verify failed", ssl, ret);
|
|
||||||
|
SSLException e(why, ssl, ret);
|
||||||
SSL_shutdown(ssl);
|
SSL_shutdown(ssl);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue