Merge branch 'PHP-8.0'

* PHP-8.0:
  Fix #81327: Error build openssl extension on php 7.4.22
This commit is contained in:
Christoph M. Becker 2021-08-04 18:45:56 +02:00
commit 86bc48c9e7
No known key found for this signature in database
GPG Key ID: D66C9593118BCCB6

View File

@ -3213,7 +3213,7 @@ PHP_FUNCTION(openssl_csr_sign)
goto cleanup;
}
#if PHP_OPENSSL_API_VERSION >= 0x10100
#if PHP_OPENSSL_API_VERSION >= 0x10100 && !defined (LIBRESSL_VERSION_NUMBER)
ASN1_INTEGER_set_int64(X509_get_serialNumber(new_cert), serial);
#else
ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial);