aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-libressl.patch')
-rw-r--r--dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-libressl.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-libressl.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-libressl.patch
new file mode 100644
index 0000000..f320fc4
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-libressl.patch
@@ -0,0 +1,31 @@
+diff --git a/SSLeay.xs b/SSLeay.xs
+index 685c2f2..54b1f40 100644
+--- a/SSLeay.xs
++++ b/SSLeay.xs
+@@ -2667,7 +2667,7 @@ RAND_write_file(file_name)
+
+ #define REM40 "Minimal X509 stuff..., this is a bit ugly and should be put in its own modules Net::SSLeay::X509.pm"
+
+-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER >= 0x1000200fL
+
+ int
+ X509_check_host(X509 *cert, const char *name, unsigned int flags = 0, SV *peername = &PL_sv_undef)
+@@ -5409,7 +5409,7 @@ SSL_get_client_random(s)
+
+ #endif
+
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
+
+ void
+ SSL_get_server_random(s)
+@@ -5440,7 +5440,7 @@ int
+ SSL_get_keyblock_size(s)
+ SSL * s
+ CODE:
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
+ const SSL_CIPHER *ssl_cipher;
+ int cipher = NID_undef, digest = NID_undef, mac_secret_size = 0;
+ const EVP_CIPHER *c = NULL;