Skip to content

Commit 5e2a586

Browse files
committed
ext/openssl: fix libressl build.
Close GH-12919
1 parent 97c6da1 commit 5e2a586

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ PHP NEWS
1010
. Fixed bug GH-12996 (Incorrect SCRIPT_NAME with Apache ProxyPassMatch when
1111
plus in path). (Jakub Zelenka)
1212

13+
- OpenSSL:
14+
. Fixed LibreSSL undefined reference when OPENSSL_NO_ENGINE not set.
15+
(David Carlier).
16+
1317
- Phar:
1418
. Fixed bug #71465 (PHAR doesn't know about litespeed). (nielsdos)
1519

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#include <openssl/param_build.h>
6262
#endif
6363

64-
#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(OPENSSL_NO_ENGINE)
64+
#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)) && !defined(OPENSSL_NO_ENGINE)
6565
#include <openssl/engine.h>
6666
#endif
6767

0 commit comments

Comments
 (0)