security/php72-openssl: fix build with libressl-devel
LibreSSL 2.7 brings out a number of incompatibilities. The new patch allows PHP to compile against the new LibreSSL version. PR: 226902 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl>
This commit is contained in:
parent
01f35f5183
commit
35a7770e3a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468343
11
security/php72-openssl/files/patch-openssl.c
Normal file
11
security/php72-openssl/files/patch-openssl.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- openssl.c.orig 2018-03-27 13:10:48 UTC
|
||||
+++ openssl.c
|
||||
@@ -566,7 +566,7 @@ ZEND_GET_MODULE(openssl)
|
||||
#endif
|
||||
|
||||
/* {{{ OpenSSL compatibility functions and macros */
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || ( defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L )
|
||||
#define EVP_PKEY_get0_RSA(_pkey) _pkey->pkey.rsa
|
||||
#define EVP_PKEY_get0_DH(_pkey) _pkey->pkey.dh
|
||||
#define EVP_PKEY_get0_DSA(_pkey) _pkey->pkey.dsa
|
Loading…
Reference in New Issue
Block a user