This commit is contained in:
parent
13a7eaff72
commit
46a1583e07
|
@ -41,7 +41,7 @@ TLSSocket::TLSSocket(SSL_CTX* ctx, int sock, const string& host,
|
|||
throw e;
|
||||
}
|
||||
|
||||
if (tkScenario == 1) commonName = otePeer;
|
||||
if (tkScenario == 1 || tkScenario ==2) commonName = otePeer;
|
||||
else {
|
||||
|
||||
if ((ret = SSL_get_verify_result(ssl)) != X509_V_OK)
|
||||
|
|
Loading…
Reference in New Issue