Fix connection of SSL clients to ZNC

This commit is contained in:
Alexey Sokolov
2014-12-02 21:42:28 +00:00
parent 6d7458c678
commit e535e62390

View File

@@ -72,6 +72,10 @@ int CZNCSock::VerifyPeerCertificate(int iPreVerify, X509_STORE_CTX * pStoreCTX)
}
void CZNCSock::SSLHandShakeFinished() {
if (GetType() != ETConn::OUTBOUND) {
return;
}
X509* pCert = GetX509();
if (!pCert) {
DEBUG(GetSockName() + ": No cert");