From 5e2a586c9ae7e6be77b130de443c0a18a2ff4a00 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 10 Dec 2023 03:37:13 +0000 Subject: [PATCH] ext/openssl: fix libressl build. Close GH-12919 --- NEWS | 4 ++++ ext/openssl/openssl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ae34f72ec66..25e241987d6 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,10 @@ PHP NEWS . Fixed bug GH-12996 (Incorrect SCRIPT_NAME with Apache ProxyPassMatch when plus in path). (Jakub Zelenka) +- OpenSSL: + . Fixed LibreSSL undefined reference when OPENSSL_NO_ENGINE not set. + (David Carlier). + - Phar: . Fixed bug #71465 (PHAR doesn't know about litespeed). (nielsdos) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 59d938d77e8..f6ed67b805b 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -61,7 +61,7 @@ #include #endif -#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(OPENSSL_NO_ENGINE) +#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)) && !defined(OPENSSL_NO_ENGINE) #include #endif