[php-src] PR #25424: Fix GH-25402: ext/openssl build failure against OpenSSL 1.0.2
| From: | ChrisOrlando | Date: | Thu, 12 Nov 2026 15:19:42 +0000 |
| Subject: | [php-src] PR #25424: Fix GH-25402: ext/openssl build failure against OpenSSL 1.0.2 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40585@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25424
Author: ChrisOrlando
19255f4b78 ("Backport compatibility changes for OpenSSL 4.0") switched the IP SAN matching
in php_openssl_matches_san_list() to ASN1_STRING_get0_data(), which was only added in OpenSSL 1.1.0.
PHP 8.2 and 8.3 still support OpenSSL 1.0.2, and openssl.c already carries a fallback for it, but
that one is static to openssl.c, so xp_ssl.c no longer compiled against 1.0.2.
Add the equivalent fallback to xp_ssl.c under the same PHP_OPENSSL_API_VERSION < 0x10100 guard.