summaryrefslogtreecommitdiff
path: root/mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2016-11-05 14:42:49 +0000
committerJohn Marino <marino@FreeBSD.org>2016-11-05 14:42:49 +0000
commit489f660da71e9516fe7dab0c74b0a59bdcf0799f (patch)
tree7ea08d597ab82999b78bd8ca119addf9b85c6f2d /mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp
parenttextproc/fzf: Document ncurses requirement (diff)
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
Diffstat (limited to 'mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp')
-rw-r--r--mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp b/mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp
new file mode 100644
index 000000000000..3f3bdf3a94eb
--- /dev/null
+++ b/mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp
@@ -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()) ;
+