diff options
author | jperkin <jperkin@pkgsrc.org> | 2021-09-28 13:50:15 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2021-09-28 13:50:15 +0000 |
commit | d9798da8c8b8d7180ba992590f4f851a8668decd (patch) | |
tree | 4c52d1e8c72d2f92bc609584965e1010d9b1116a /lang/php74 | |
parent | 310484c9bd566eff89e72e6622627addf5685082 (diff) | |
download | pkgsrc-d9798da8c8b8d7180ba992590f4f851a8668decd.tar.gz |
php74: Support OpenSSL 3.
Diffstat (limited to 'lang/php74')
-rw-r--r-- | lang/php74/distinfo | 3 | ||||
-rw-r--r-- | lang/php74/patches/patch-ext_openssl_openssl.c | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/php74/distinfo b/lang/php74/distinfo index 15abac34daf..626e266c343 100644 --- a/lang/php74/distinfo +++ b/lang/php74/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.28 2021/09/24 02:27:04 taca Exp $ +$NetBSD: distinfo,v 1.29 2021/09/28 13:50:15 jperkin Exp $ SHA1 (php-7.4.24.tar.xz) = 34660781db70c891dcaab046931d38f60464d7e3 RMD160 (php-7.4.24.tar.xz) = 67a0c7ca2067311ee363e685fc89aba1980b0778 @@ -13,6 +13,7 @@ SHA1 (patch-ext_intl_dateformat_dateformat__attr.c) = 08a26ec534b67ed029426e4aa3 SHA1 (patch-ext_intl_normalizer_normalizer__normalize.c) = 10a215438db81c9f1f002f9409ebd56de6d65617 SHA1 (patch-ext_intl_timezone_timezone__class.cpp) = da8e7a227c04f366aa9aab08c5042826baa965fe SHA1 (patch-ext_intl_timezone_timezone__methods.cpp) = 48dc73ca68df2454549bb81de6da6753bbb097bc +SHA1 (patch-ext_openssl_openssl.c) = bbd446bbf89e90749a01319553d666d86d1274e2 SHA1 (patch-ext_phar_Makefile.frag) = 53ea5c58b0bc27d236118d5750a74b1cba43e5dd SHA1 (patch-ext_tidy_config.m4) = 380f4e8927582b2781faf58b17ad81b6dc967ba7 SHA1 (patch-ext_xsl_php__xsl.h) = a9877bff7bacc77926a4541a0ac171c00ad1a627 diff --git a/lang/php74/patches/patch-ext_openssl_openssl.c b/lang/php74/patches/patch-ext_openssl_openssl.c new file mode 100644 index 00000000000..39c6e1c427e --- /dev/null +++ b/lang/php74/patches/patch-ext_openssl_openssl.c @@ -0,0 +1,16 @@ +$NetBSD: patch-ext_openssl_openssl.c,v 1.1 2021/09/28 13:50:15 jperkin Exp $ + +Support OpenSSL 3.x. + +--- ext/openssl/openssl.c.orig 2021-08-24 16:33:31.000000000 +0000 ++++ ext/openssl/openssl.c +@@ -1517,7 +1517,9 @@ PHP_MINIT_FUNCTION(openssl) + REGISTER_LONG_CONSTANT("PKCS7_NOSIGS", PKCS7_NOSIGS, CONST_CS|CONST_PERSISTENT); + + REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_PADDING", RSA_PKCS1_PADDING, CONST_CS|CONST_PERSISTENT); ++#if OPENSSL_VERSION_NUMBER < 0x03000000L + REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT); ++#endif + REGISTER_LONG_CONSTANT("OPENSSL_NO_PADDING", RSA_NO_PADDING, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_OAEP_PADDING", RSA_PKCS1_OAEP_PADDING, CONST_CS|CONST_PERSISTENT); + |