1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp
John Marino 489f660da7 mail/emailrelay: Fix DEFAULT_VERSIONS+=ssl
Both LibreSSL and the latest version of OpenSSL lack definitions for
SSLv3_method, so handle that case to fix the build with those SSL options.

Appoved by:	SSL blanket
2016-11-05 14:42:49 +00:00

14 lines
387 B
C++

--- src/gssl/gssl_openssl.cpp.orig 2013-12-07 22:55:47 UTC
+++ src/gssl/gssl_openssl.cpp
@@ -292,8 +292,10 @@ GSsl::Context::Context( const std::strin
{
if( (flags&3U) == 2U )
m_ssl_ctx = SSL_CTX_new(SSLv23_method()) ;
+#ifndef OPENSSL_NO_SSL3
else if( (flags&3U) == 3U )
m_ssl_ctx = SSL_CTX_new(SSLv3_method()) ;
+#endif
else
m_ssl_ctx = SSL_CTX_new(TLSv1_method()) ;