mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
489f660da7
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
14 lines
387 B
C++
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()) ;
|
|
|