mirror of
https://github.com/znc/znc.git
synced 2026-08-09 10:23:14 +02:00
@@ -33,6 +33,7 @@ public:
|
||||
#ifdef HAVE_LIBSSL
|
||||
int VerifyPeerCertificate(int iPreVerify, X509_STORE_CTX * pStoreCTX) override;
|
||||
void SSLHandShakeFinished() override;
|
||||
bool SNIConfigureClient(CString& sHostname) override;
|
||||
#endif
|
||||
void SetHostToVerifySSL(const CString& sHost) { m_HostToVerifySSL = sHost; }
|
||||
CString GetSSLPeerFingerprint() const;
|
||||
|
||||
@@ -126,6 +126,11 @@ void CZNCSock::SSLHandShakeFinished() {
|
||||
CallSockError(errnoBadSSLCert, sErrorMsg);
|
||||
Close();
|
||||
}
|
||||
|
||||
bool CZNCSock::SNIConfigureClient(CString& sHostname) {
|
||||
sHostname = m_HostToVerifySSL;
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
CString CZNCSock::GetSSLPeerFingerprint() const {
|
||||
|
||||
Reference in New Issue
Block a user