From: Kyle Fuller Date: Mon, 10 Aug 2015 23:53:36 +0000 (+0100) Subject: wip X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=501713289c7f1415fbba31dd66d930dc4c76db32;p=znc-palaver.git wip --- diff --git a/palaver.cpp b/palaver.cpp index f9d16c2..c48e2ce 100644 --- a/palaver.cpp +++ b/palaver.cpp @@ -24,6 +24,14 @@ #endif #endif +#if defined VERSION_MAJOR && defined VERSION_MINOR && VERSION_MAJOR >= 1 && VERSION_MINOR < 6 +#define CSOCKET_DOES_NOT_HAVE_SNI_CONFIGURATION + +static int PalaverSNICallBack(SSL *pSSL, int *piAD, void *pData) { + +} +#endif + #ifndef PALAVER_VERSION #define PALAVER_VERSION "unknown" #endif @@ -73,8 +81,6 @@ class PLVHTTPSocket : public CSocket { public: PLVHTTPSocket(CModule *pModule, const CString &sMethod, const CString &sURL, MCString &mcsHeaders, const CString &sContent) : CSocket(pModule) { - SetSSLMethod(TLS12); - m_eState = StatusLine; unsigned short uPort = 80; @@ -173,6 +179,12 @@ public: return true; } +#ifdef CSOCKET_DOES_NOT_HAVE_SNI_CONFIGURATION + bool AcceptSSL() { + return CSocket::AcceptSSL(); + } +#endif + private: CString m_sHostname; };