diff --git a/include/znc/Socket.h b/include/znc/Socket.h index ea87a696..d1293f91 100644 --- a/include/znc/Socket.h +++ b/include/znc/Socket.h @@ -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; diff --git a/src/Socket.cpp b/src/Socket.cpp index 80e86675..b76d827b 100644 --- a/src/Socket.cpp +++ b/src/Socket.cpp @@ -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 {