Skip to content

Commit 6724d5d

Browse files
committed
Fix #81327: Error build openssl extension on php 7.4.22
The recent fix for bug 52093 is not compatible with LibreSSL ≥ 2.7.0, which we recognize as mostly OpenSSL 1.1.0 compatible, but they still do not support `ASN1_INTEGER_set_int64()`. Closes GH-7339.
1 parent c565555 commit 6724d5d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ PHP NEWS
1818
- GD:
1919
. Fixed bug #51498 (imagefilledellipse does not work for large circles). (cmb)
2020

21+
- OpenSSL:
22+
. Fixed bug #81327 (Error build openssl extension on php 7.4.22). (cmb)
23+
2124
- PDO_ODBC:
2225
. Fixed bug #81252 (PDO_ODBC doesn't account for SQL_NO_TOTAL). (cmb)
2326

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3524,7 +3524,7 @@ PHP_FUNCTION(openssl_csr_sign)
35243524
goto cleanup;
35253525
}
35263526

3527-
#if PHP_OPENSSL_API_VERSION >= 0x10100
3527+
#if PHP_OPENSSL_API_VERSION >= 0x10100 && !defined (LIBRESSL_VERSION_NUMBER)
35283528
ASN1_INTEGER_set_int64(X509_get_serialNumber(new_cert), serial);
35293529
#else
35303530
ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial);

0 commit comments

Comments
 (0)