File php5-openssl.patch of Package php5

Index: ext/openssl/openssl.c
===================================================================
--- ext/openssl/openssl.c.orig	2014-07-02 02:23:22.000000000 +0200
+++ ext/openssl/openssl.c	2014-07-30 09:49:25.216474921 +0200
@@ -1124,6 +1124,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	2014-07-02 02:23:22.000000000 +0200
+++ ext/openssl/xp_ssl.c	2014-07-30 09:57:41.116465493 +0200
@@ -1383,6 +1383,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;
openSUSE Build Service is sponsored by