diff options
author | brnrd <brnrd@FreeBSD.org> | 2016-12-11 04:09:18 +0800 |
---|---|---|
committer | brnrd <brnrd@FreeBSD.org> | 2016-12-11 04:09:18 +0800 |
commit | aa7408b245baf29d5e42edbae513fbbd0252517e (patch) | |
tree | 9c05f3b4af9af3ff67390d1f6d22db906e34fa64 /security | |
parent | f7e59f3551c5610061ede6cbed56012a1467defb (diff) | |
download | freebsd-ports-gnome-aa7408b245baf29d5e42edbae513fbbd0252517e.tar.gz freebsd-ports-gnome-aa7408b245baf29d5e42edbae513fbbd0252517e.tar.zst freebsd-ports-gnome-aa7408b245baf29d5e42edbae513fbbd0252517e.zip |
security/p5-Crypt-SSLeay: Fix build without SSLv2/3
- Add patch to fix build without SSLv2/3
Approved by: SSL blanket
Diffstat (limited to 'security')
-rw-r--r-- | security/p5-Crypt-SSLeay/files/patch-SSLeay.xs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/security/p5-Crypt-SSLeay/files/patch-SSLeay.xs b/security/p5-Crypt-SSLeay/files/patch-SSLeay.xs new file mode 100644 index 000000000000..f1fee930e3e5 --- /dev/null +++ b/security/p5-Crypt-SSLeay/files/patch-SSLeay.xs @@ -0,0 +1,25 @@ +--- SSLeay.xs.orig 2014-04-23 22:36:24 UTC ++++ SSLeay.xs +@@ -148,16 +148,21 @@ SSL_CTX_new(packname, ssl_version) + if(ssl_version == 23) { + ctx = SSL_CTX_new(SSLv23_client_method()); + } ++#ifndef OPENSSL_NO_SSL3 + else if(ssl_version == 3) { + ctx = SSL_CTX_new(SSLv3_client_method()); + } ++#endif + else { + #ifndef OPENSSL_NO_SSL2 + /* v2 is the default */ + ctx = SSL_CTX_new(SSLv2_client_method()); +-#else ++#elif !defined(OPENSSL_NO_SSL3) + /* v3 is the default */ + ctx = SSL_CTX_new(SSLv3_client_method()); ++#else ++ /* v23 is the default */ ++ ctx = SSL_CTX_new(SSLv23_client_method()); + #endif + } + |