com php-src: Add RAND_egd check for compiling against LibreSSL: NEWS ext/openssl/config0.m4 ext/open ssl/openssl.c

From: Date: Fri, 27 Mar 2015 12:24:36 +0000
Subject: com php-src: Add RAND_egd check for compiling against LibreSSL: NEWS ext/openssl/config0.m4 ext/open ssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85889@lists.php.net to get a copy of this message
Commit: 1b2d58a364b8ac5e135bec18f6b47902ec62c5db Author: Leigh <leigh@php.net> Fri, 27 Mar 2015 13:24:36 +0100 Parents: bc0e5051e3b6509027c621a11332cce60dde81cb Branches: PHP-5.5 PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b2d58a364b8ac5e135bec18f6b47902ec62c5db Log: Add RAND_egd check for compiling against LibreSSL Changed paths: M NEWS M ext/openssl/config0.m4 M ext/openssl/openssl.c Diff: diff --git a/NEWS b/NEWS index c972838..5cda6a2 100644 --- a/NEWS +++ b/NEWS @@ -32,27 +32,28 @@ PHP NEWS Welch) - Mbstring: - . Fixed bug #68846 (False detection of CJK Unified Ideographs Extension E). + . Fixed bug #68846 (False detection of CJK Unified Ideographs Extension E). (Masaki Kagaya) - OpenSSL: - . Fixed bug #67403 (Add signatureType to openssl_x509_parse). + . Fixed bug #67403 (Add signatureType to openssl_x509_parse). + . Add a check for RAND_egd to allow compiling against LibreSSL (Leigh) - Postgres: . Fixed bug #68741 (Null pointer dereference) (CVE-2015-1352). (Laruence) - SPL: - . Fixed bug #69227 (Use after free in zval_scan caused by + . Fixed bug #69227 (Use after free in zval_scan caused by spl_object_storage_get_gc). (adam dot scarr at 99designs dot com) - SOAP: - . Fixed bug #69293 (NEW segfault when using SoapClient::__setSoapHeader + . Fixed bug #69293 (NEW segfault when using SoapClient::__setSoapHeader (bisected, regression)). (thomas at shadowweb dot org, Laruence) - SQLITE: - . Fixed bug #68760 (SQLITE segfaults if custom collator throws an exception). + . Fixed bug #68760 (SQLITE segfaults if custom collator throws an exception). (Dan Ackroyd) - . Fixed bug #69287 (Upgrade bundled sqlite to 3.8.8.3). (Anatol) + . Fixed bug #69287 (Upgrade bundled sqlite to 3.8.8.3). (Anatol) 19 Mar 2015, PHP 5.5.23 diff --git a/ext/openssl/config0.m4 b/ext/openssl/config0.m4 index a97114f..bd58be3 100644 --- a/ext/openssl/config0.m4 +++ b/ext/openssl/config0.m4 @@ -18,6 +18,7 @@ if test "$PHP_OPENSSL" != "no"; then AC_CHECK_LIB(ssl, DSA_get_default_method, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) AC_CHECK_LIB(crypto, X509_free, AC_DEFINE(HAVE_DSA_DEFAULT_METHOD, 1, [OpenSSL 0.9.7 or later])) + AC_CHECK_FUNCS([RAND_egd]) PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, [ diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index c64f1e92..9c4131f 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -927,11 +927,13 @@ static int php_openssl_load_rand_file(const char * file, int *egdsocket, int *se if (file == NULL) { file = RAND_file_name(buffer, sizeof(buffer)); +#ifdef HAVE_RAND_EGD } else if (RAND_egd(file) > 0) { /* if the given filename is an EGD socket, don't * write anything back to it */ *egdsocket = 1; return SUCCESS; +#endif } if (file == NULL || !RAND_load_file(file, -1)) { if (RAND_status() == 0) {

« previous php.cvs (#85889) next »