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:
parent
9167fe6b28
commit
489f660da7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425393
@ -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
|
||||
|
||||
|
13
mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp
Normal file
13
mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp
Normal 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()) ;
|
||||
|
Loading…
Reference in New Issue
Block a user