Skip to content

Commit

Permalink
HBSD: mail/mailrelay: Fix build problems without SSLv3
Browse files Browse the repository at this point in the history
Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
  • Loading branch information
Sp1l committed Apr 15, 2016
1 parent 3c66b83 commit 81ccedf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mail/emailrelay/files/patch-src_gssl_gssl__openssl.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- src/gssl/gssl_openssl.cpp.orig 2013-12-07 22:55:47 UTC
+++ src/gssl/gssl_openssl.cpp
@@ -293,7 +293,11 @@ GSsl::Context::Context( const std::strin
if( (flags&3U) == 2U )
m_ssl_ctx = SSL_CTX_new(SSLv23_method()) ;
else if( (flags&3U) == 3U )
+#ifndef OPENSSL_NO_SSL3
m_ssl_ctx = SSL_CTX_new(SSLv3_method()) ;
+#else
+ m_ssl_ctx = SSL_CTX_new(SSLv23_method()) ;
+#endif
else
m_ssl_ctx = SSL_CTX_new(TLSv1_method()) ;

0 comments on commit 81ccedf

Please sign in to comment.