LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File php7-openssl.patch of Package php7 (Project home:mayflower:php7.0_based)

Index: ext/openssl/openssl.c
===================================================================
--- ext/openssl/openssl.c.orig	2015-07-10 14:11:41.031035942 +0200
+++ ext/openssl/openssl.c	2015-07-14 10:52:38.034872205 +0200
@@ -1144,6 +1144,7 @@
 	OpenSSL_add_all_ciphers();
 	OpenSSL_add_all_digests();
 	OpenSSL_add_all_algorithms();
+	OPENSSL_config(NULL);
 
 	SSL_load_error_strings();
 
Index: ext/openssl/xp_ssl.c
===================================================================
--- ext/openssl/xp_ssl.c.orig	2015-07-10 14:11:41.029035917 +0200
+++ ext/openssl/xp_ssl.c	2015-07-14 10:52:38.034872205 +0200
@@ -1542,6 +1542,10 @@
 		return FAILURE;
 	}
 
+#ifdef SSL_MODE_RELEASE_BUFFERS
+       SSL_CTX_set_mode(sslsock->ctx, SSL_MODE_RELEASE_BUFFERS);
+#endif
+
 #if OPENSSL_VERSION_NUMBER >= 0x0090806fL
 	if (GET_VER_OPT("no_ticket") && zend_is_true(val)) {
 		ssl_ctx_options |= SSL_OP_NO_TICKET;