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
This commit is contained in:
John Marino 2016-11-05 14:42:49 +00:00
parent 9167fe6b28
commit 489f660da7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425393
2 changed files with 15 additions and 0 deletions

View File

@ -33,6 +33,8 @@ GUI_USE= QT4=gui,moc
OPENSSL_CONFIGURE_WITH= openssl
OPENSSL_USE= OPENSSL=yes
OPENSSL_LDFLAGS= -L${OPENSSLLIB}
OPENSSL_CPPFLAGS= -I${OPENSSLINC}
IPV6_CONFIGURE_ENABLE= ipv6

View File

@ -0,0 +1,13 @@
--- 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()) ;