diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2016-03-21 23:19:22 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2016-03-21 23:39:25 +0100 |
commit | d4b6273a7404bc13344f91a98345fe1c74148146 (patch) | |
tree | f7eebdfa215568afeed64915dbf243203a1de674 /dev-perl/Crypt-SSLeay/files | |
parent | dev-ruby/cocaine: Remove old (diff) | |
download | gentoo-d4b6273a7404bc13344f91a98345fe1c74148146.tar.gz gentoo-d4b6273a7404bc13344f91a98345fe1c74148146.tar.bz2 gentoo-d4b6273a7404bc13344f91a98345fe1c74148146.zip |
dev-perl/Crypt-SSLeay: Add version compatible with libressl-2.3 (no SSL2, no SSL3)
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-perl/Crypt-SSLeay/files')
-rw-r--r-- | dev-perl/Crypt-SSLeay/files/Crypt-SSLeay-0.720.0-no-ssl3.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-perl/Crypt-SSLeay/files/Crypt-SSLeay-0.720.0-no-ssl3.patch b/dev-perl/Crypt-SSLeay/files/Crypt-SSLeay-0.720.0-no-ssl3.patch new file mode 100644 index 000000000000..72febbfff7e9 --- /dev/null +++ b/dev-perl/Crypt-SSLeay/files/Crypt-SSLeay-0.720.0-no-ssl3.patch @@ -0,0 +1,40 @@ +--- a/SSLeay.xs 2014-04-24 07:36:24.000000000 +0000 ++++ b/SSLeay.xs 2015-12-27 13:39:05.695422091 +0000 +@@ -45,13 +45,6 @@ + } + #endif + +- +-#if SSLEAY_VERSION_NUMBER >= 0x0900 +-#define CRYPT_SSL_CLIENT_METHOD SSLv3_client_method() +-#else +-#define CRYPT_SSL_CLIENT_METHOD SSLv2_client_method() +-#endif +- + static void InfoCallback(const SSL *s,int where,int ret) + { + const char *str; +@@ -145,22 +138,7 @@ + RAND_seed(buf, CRYPT_SSLEAY_RAND_BUFSIZE); + } + +- if(ssl_version == 23) { +- ctx = SSL_CTX_new(SSLv23_client_method()); +- } +- else if(ssl_version == 3) { +- ctx = SSL_CTX_new(SSLv3_client_method()); +- } +- else { +-#ifndef OPENSSL_NO_SSL2 +- /* v2 is the default */ +- ctx = SSL_CTX_new(SSLv2_client_method()); +-#else +- /* v3 is the default */ +- ctx = SSL_CTX_new(SSLv3_client_method()); +-#endif +- } +- ++ ctx = SSL_CTX_new(SSLv23_client_method()); + SSL_CTX_set_options(ctx,SSL_OP_ALL|0); + SSL_CTX_set_default_verify_paths(ctx); + SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL); |