From 381697b8848c3b8dbbbb624ee0ff6a1caf6da300 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Tue, 19 Jul 2016 21:57:22 -0700 Subject: [PATCH] added the nginx core patch ssl_pending_session for nginx 1.9.15 as well. --- patches/nginx-1.9.15-ssl_pending_session.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 patches/nginx-1.9.15-ssl_pending_session.patch diff --git a/patches/nginx-1.9.15-ssl_pending_session.patch b/patches/nginx-1.9.15-ssl_pending_session.patch new file mode 100644 index 0000000..7c1f67f --- /dev/null +++ b/patches/nginx-1.9.15-ssl_pending_session.patch @@ -0,0 +1,16 @@ +--- nginx-1.9.15/src/event/ngx_event_openssl.c 2016-07-17 19:20:30.411137606 -0700 ++++ nginx-1.9.15-patched/src/event/ngx_event_openssl.c 2016-07-19 16:53:35.539768477 -0700 +@@ -1307,7 +1307,12 @@ ngx_ssl_handshake(ngx_connection_t *c) + } + + #if OPENSSL_VERSION_NUMBER >= 0x10002000L +- if (sslerr == SSL_ERROR_WANT_X509_LOOKUP) { ++ if (sslerr == SSL_ERROR_WANT_X509_LOOKUP ++# ifdef SSL_ERROR_PENDING_SESSION ++ || sslerr == SSL_ERROR_PENDING_SESSION ++# endif ++ ) ++ { + c->read->handler = ngx_ssl_handshake_handler; + c->write->handler = ngx_ssl_handshake_handler; +