]> git.pld-linux.org Git - packages/php.git/blame - openssl.patch
Up to 8.2.2
[packages/php.git] / openssl.patch
CommitLineData
d1d5e76f
AM
1diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
2index 5564bf6f08..423f696c76 100644
3--- a/ext/openssl/xp_ssl.c
4+++ b/ext/openssl/xp_ssl.c
5@@ -1286,6 +1286,10 @@ static int php_openssl_set_server_specific_opts(php_stream *stream, SSL_CTX *ctx
6 zval *zv;
7 long ssl_ctx_options = SSL_CTX_get_options(ctx);
8
9+#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
10+ ssl_ctx_options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
11+#endif
12+
13 #if defined(HAVE_ECDH) && PHP_OPENSSL_API_VERSION < 0x10100
14 if (php_openssl_set_server_ecdh_curve(stream, ctx) == FAILURE) {
15 return FAILURE;
16@@ -1628,6 +1632,10 @@ int php_openssl_setup_crypto(php_stream *stream,
17 ssl_ctx_options = SSL_OP_ALL;
18 #endif
19
20+#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
21+ ssl_ctx_options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
22+#endif
23+
24 if (sslsock->ctx == NULL) {
25 php_error_docref(NULL, E_WARNING, "SSL context creation failure");
26 return FAILURE;
This page took 0.259402 seconds and 4 git commands to generate.