svn commit: r468343 - head/security/php72-openssl/files
Torsten Zuehlsdorff
tz at FreeBSD.org
Thu Apr 26 10:15:14 UTC 2018
Author: tz
Date: Thu Apr 26 10:15:13 2018
New Revision: 468343
URL: https://svnweb.freebsd.org/changeset/ports/468343
Log:
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 at anongoth.pl>
Added:
head/security/php72-openssl/files/
head/security/php72-openssl/files/patch-openssl.c (contents, props changed)
Added: head/security/php72-openssl/files/patch-openssl.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/php72-openssl/files/patch-openssl.c Thu Apr 26 10:15:13 2018 (r468343)
@@ -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
More information about the svn-ports-head
mailing list