From 0ebdf3625e629b2a4f9255190dfb04a67e511617 Mon Sep 17 00:00:00 2001 From: Jakub Zelenka Date: Sun, 27 Nov 2016 19:00:05 +0000 Subject: Do not add extra timeval entropy when OpenSSL 1.1 used It is already added by OpenSSL so it is not needed --- ext/openssl/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 1ebbe99c4e..7e0721ca54 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() -- cgit v1.2.1