]> jfr.im git - irc/znc/Csocket.git/commit
Fix build when OpenSSL is built without SSLv3
authorBernard Spil <redacted>
Fri, 9 Oct 2015 07:04:43 +0000 (09:04 +0200)
committerAlexey Sokolov <redacted>
Sun, 1 Nov 2015 23:47:18 +0000 (23:47 +0000)
commit8e3b70aab7f6801ee834ae919b0675bbba5c7932
tree2033efa116663603b20bb90780130cd2637a59b2
parent0d6d4ee0974ae32af43ff3f6747788aa0b44afe1
Fix build when OpenSSL is built without SSLv3

If OpenSSL is built without SSLv3 support (configure --no-ssl3), this will fail to build. Patch fixes that. Please see https://github.com/pcbsd/freebsd-ports/blob/master/irc/znc/files/patch-src_Csocket.cpp as well. This is intended to be applied to the FreeBSD ports tree as well.

As a side note: You may wish to refactor the code to only use SSLv23_ methods and set SSL_OP_NO_* using SSL_CTX_set_options. This seems to be the canonical way to be able to negotiate any SSL/TLS version. In addition, OpenSSL 1.1 will be marking SSLv23_ methods as deprecated and replace them with TLS_ methods.
(cherry picked from commit 4dda6ada04fe334cf4a337d9138cc48fc346a992)
Csocket.cc