diff --git a/NEWS b/NEWS index ad524d0bb94c..1004f784e3f4 100644 --- a/NEWS +++ b/NEWS @@ -2,7 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? ????, PHP 8.2.36 - +- OpenSSL: + . Fixed bug GH-25402 (Build fails against OpenSSL 1.0.2 due to missing + ASN1_STRING_get0_data() in xp_ssl.c). (Chris Orlando) 21 Oct 2026, PHP 8.2.35 diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index cc0f53898abc..e2aecdf8ac7f 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -36,6 +36,10 @@ #include #include +#if PHP_OPENSSL_API_VERSION < 0x10100 +# define ASN1_STRING_get0_data(asn1) ((const unsigned char *)M_ASN1_STRING_data(asn1)) +#endif + #ifdef PHP_WIN32 #include "win32/winutil.h" #include "win32/time.h"