com php-src: Do not add extra timeval entropy when OpenSSL 1.1 used: ext/openssl/openssl.c

From: Date: Sun, 27 Nov 2016 19:00:05 +0000
Subject: com php-src: Do not add extra timeval entropy when OpenSSL 1.1 used: ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96076@lists.php.net to get a copy of this message
Commit: 0ebdf3625e629b2a4f9255190dfb04a67e511617 Author: Jakub Zelenka <bukka@php.net> Sun, 27 Nov 2016 19:00:05 +0000 Parents: 0f4216298fbd9a1fdcf978967ac04df76f6283d0 Branches: PHP-7.1 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0ebdf3625e629b2a4f9255190dfb04a67e511617 Log: Do not add extra timeval entropy when OpenSSL 1.1 used It is already added by OpenSSL so it is not needed Changed paths: M ext/openssl/openssl.c Diff: diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 1ebbe99..7e0721c 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1209,7 +1209,7 @@ static void php_openssl_dispose_config(struct php_x509_request * req) /* {{{ */ } /* }}} */ -#ifdef PHP_WIN32 +#if defined(PHP_WIN32) || (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) #define PHP_OPENSSL_RAND_ADD_TIME() ((void) 0) #else #define PHP_OPENSSL_RAND_ADD_TIME() php_openssl_rand_add_timeval()

« previous php.cvs (#96076) next »