diff options
author | orbea <orbea@riseup.net> | 2023-05-29 12:37:08 -0700 |
---|---|---|
committer | orbea <orbea@riseup.net> | 2023-05-29 12:43:25 -0700 |
commit | 0c6641cc3ba9fb12a8867f7d87336996238dad10 (patch) | |
tree | f1660c32b8decf2f2c7606327fff55f9c01357a9 /dev-perl/Net-SSLeay/files | |
parent | dev-perl/Net-SSLeay: sync ::gentoo (diff) | |
download | libressl-0c6641cc3ba9fb12a8867f7d87336996238dad10.tar.gz libressl-0c6641cc3ba9fb12a8867f7d87336996238dad10.tar.bz2 libressl-0c6641cc3ba9fb12a8867f7d87336996238dad10.zip |
dev-perl/Net-SSLeay: Fix build with LibreSSL-3.8.0
Upstream-PR: https://github.com/radiator-software/p5-net-ssleay/pull/434
Signed-off-by: orbea <orbea@riseup.net>
Diffstat (limited to 'dev-perl/Net-SSLeay/files')
-rw-r--r-- | dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.8.0.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.8.0.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.8.0.patch new file mode 100644 index 0000000..d02333e --- /dev/null +++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.8.0.patch @@ -0,0 +1,34 @@ +https://github.com/radiator-software/p5-net-ssleay/pull/434 + +From 79a06ce5f9a77d8c65d51035f8edb6043864f342 Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Mon, 29 May 2023 10:16:33 -0700 +Subject: [PATCH] SSLeay.xs: Disable Policy Tree API for LibreSSL 3.8 and later + +This is taken from the OpenBSD ports tree. + +https://github.com/openbsd/ports/commit/f6567f938c9bd51bfd99f8426eba6a1590cc6384 +--- + SSLeay.xs | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/SSLeay.xs b/SSLeay.xs +index 102e89f..ae870c0 100644 +--- a/SSLeay.xs ++++ b/SSLeay.xs +@@ -7157,6 +7157,7 @@ X509_VERIFY_PARAM_get0_peername(param) + + #endif /* OpenSSL 1.0.2-beta2, LibreSSL 2.7.0 */ + ++#if !defined(LIBRESSL_VERSION_NUMBER) || (LIBRESSL_VERSION_NUMBER < 0x3080000fL) /* LibreSSL < 3.8.0 */ + void + X509_policy_tree_free(tree) + X509_POLICY_TREE *tree +@@ -7199,6 +7200,7 @@ const X509_POLICY_NODE * + X509_policy_node_get0_parent(node) + const X509_POLICY_NODE *node + ++#endif /* !(LibreSSL >= 3.7.0) */ + #endif + + ASN1_OBJECT * |