Skip to content

Fix GH-25402: ext/openssl build failure against OpenSSL 1.0.2 - #25424

Open
ChrisOrlando wants to merge 1 commit into
php:PHP-8.2from
ChrisOrlando:fix-gh-25402-openssl-1.0.2-build
Open

ChrisOrlando wants to merge 1 commit into
php:PHP-8.2from
ChrisOrlando:fix-gh-25402-openssl-1.0.2-build

Conversation

@ChrisOrlando

Copy link
Copy Markdown

19255f4 ("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.

19255f4 ("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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant