diff options
author | Kent Fredric <kentnl@gentoo.org> | 2017-10-19 14:44:28 +1300 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2017-10-19 14:45:23 +1300 |
commit | de872dbfadcb881f6dc7dd0b79760b5e11628fcd (patch) | |
tree | b333b734595a0fa442d225cba4358e8903cb7377 /dev-perl/Crypt-OpenSSL-Bignum/files | |
parent | profiles: USE mask doc for app-emulation/xen-tools on arm (diff) | |
download | gentoo-de872dbfadcb881f6dc7dd0b79760b5e11628fcd.tar.gz gentoo-de872dbfadcb881f6dc7dd0b79760b5e11628fcd.tar.bz2 gentoo-de872dbfadcb881f6dc7dd0b79760b5e11628fcd.zip |
dev-perl/Crypt-OpenSSL-Bignum: Fix for OpenSSL 1.1.0f
Bug: https://bugs.gentoo.org/592532
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-perl/Crypt-OpenSSL-Bignum/files')
-rw-r--r-- | dev-perl/Crypt-OpenSSL-Bignum/files/Crypt-OpenSSL-Bignum-0.80.0-openssl1.1.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-perl/Crypt-OpenSSL-Bignum/files/Crypt-OpenSSL-Bignum-0.80.0-openssl1.1.patch b/dev-perl/Crypt-OpenSSL-Bignum/files/Crypt-OpenSSL-Bignum-0.80.0-openssl1.1.patch new file mode 100644 index 000000000000..f2c934863a13 --- /dev/null +++ b/dev-perl/Crypt-OpenSSL-Bignum/files/Crypt-OpenSSL-Bignum-0.80.0-openssl1.1.patch @@ -0,0 +1,49 @@ +From d9ddaa210a1b91deb6ea6fcea4cb274f634e482d Mon Sep 17 00:00:00 2001 +From: Mark Wright <gienah@gentoo.org> +Date: Tue, 17 Oct 2017 16:50:01 +1100 +Subject: Fix building with OpenSSL 1.1.0 + +Bug: https://bugs.gentoo.org/592532 +Bug: https://rt.cpan.org/Ticket/Display.html?id=117482 +Bug: https://github.com/kmx/perl-Crypt-OpenSSL-Bignum/pull/7 +--- + Bignum.xs | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/Bignum.xs b/Bignum.xs +index d39dcff..149fa52 100755 +--- a/Bignum.xs ++++ b/Bignum.xs +@@ -29,7 +29,11 @@ BIGNUM* sv2bn( SV* sv ) + MODULE = Crypt::OpenSSL::Bignum PACKAGE = Crypt::OpenSSL::Bignum PREFIX = BN_ + + BOOT: ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ++ OPENSSL_init_crypto(0, NULL); ++#else + ERR_load_crypto_strings(); ++#endif + + void + DESTROY(Crypt::OpenSSL::Bignum self) +@@ -92,7 +96,7 @@ BN_new(CLASS) + BIGNUM* bn; + CODE: + checkOpenSslCall( bn = BN_new() ); +- checkOpenSslCall( BN_zero( bn ) ); ++ checkOpenSslCall( BN_set_word( bn, 0 ) ); + RETVAL = bn; + OUTPUT: + RETVAL +@@ -103,7 +107,7 @@ BN_zero(CLASS) + BIGNUM *bn; + CODE: + checkOpenSslCall( bn = BN_new() ); +- checkOpenSslCall( BN_zero( bn ) ); ++ checkOpenSslCall( BN_set_word( bn, 0 ) ); + RETVAL = bn; + OUTPUT: + RETVAL +-- +2.14.2 + |