pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php80 php80: Support OpenSSL 3.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/40ecead15649
branches:  trunk
changeset: 459020:40ecead15649
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Sep 28 13:59:12 2021 +0000

description:
php80: Support OpenSSL 3.

diffstat:

 lang/php80/distinfo                            |   3 ++-
 lang/php80/patches/patch-ext_openssl_openssl.c |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 2766cfc00d87 -r 40ecead15649 lang/php80/distinfo
--- a/lang/php80/distinfo       Tue Sep 28 13:58:13 2021 +0000
+++ b/lang/php80/distinfo       Tue Sep 28 13:59:12 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2021/09/23 15:48:37 taca Exp $
+$NetBSD: distinfo,v 1.9 2021/09/28 13:59:12 jperkin Exp $
 
 SHA1 (php-8.0.11.tar.xz) = a69e003e68abe2a511fa7632f1cfa017f32be34d
 RMD160 (php-8.0.11.tar.xz) = 291d6e4d7e331bb43f570ef053b4fb484ff40c3c
@@ -8,6 +8,7 @@
 SHA1 (patch-configure) = 6c3d2537eb4d1c2ed05e8e1e411701d316c67d8b
 SHA1 (patch-disable-filter-url) = 0a2c19c18f089448a8d842e99738b292ab9e5640
 SHA1 (patch-ext_enchant_enchant.c) = 74e0ec62928c84998ea41863088203f2511911fd
+SHA1 (patch-ext_openssl_openssl.c) = 6d83ad075866c90e17a8085fc7b562f33aea8583
 SHA1 (patch-ext_phar_Makefile.frag) = 53ea5c58b0bc27d236118d5750a74b1cba43e5dd
 SHA1 (patch-ext_tidy_config.m4) = 380f4e8927582b2781faf58b17ad81b6dc967ba7
 SHA1 (patch-ext_xsl_php__xsl.h) = cf930c5d6d9dab29b12558d265c67d3534a006fd
diff -r 2766cfc00d87 -r 40ecead15649 lang/php80/patches/patch-ext_openssl_openssl.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php80/patches/patch-ext_openssl_openssl.c    Tue Sep 28 13:59:12 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ext_openssl_openssl.c,v 1.1 2021/09/28 13:59:12 jperkin Exp $
+
+Support OpenSSL 3.x.
+
+--- ext/openssl/openssl.c.orig 2021-08-24 15:40:40.000000000 +0000
++++ ext/openssl/openssl.c
+@@ -1221,7 +1221,9 @@ PHP_MINIT_FUNCTION(openssl)
+       REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOSIGS", CMS_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);
+ 



Home | Main Index | Thread Index | Old Index