This commit is contained in:
Ren RenJuan 2014-01-11 01:09:32 +00:00
parent 13a7eaff72
commit 46a1583e07
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ TLSSocket::TLSSocket(SSL_CTX* ctx, int sock, const string& host,
throw e; throw e;
} }
if (tkScenario == 1) commonName = otePeer; if (tkScenario == 1 || tkScenario ==2) commonName = otePeer;
else { else {
if ((ret = SSL_get_verify_result(ssl)) != X509_V_OK) if ((ret = SSL_get_verify_result(ssl)) != X509_V_OK)