From: Lukas Tribus Date: Wed, 17 Dec 2014 14:12:50 +0000 (+0100) Subject: SSL: safeguard use of SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS. X-Git-Tag: release-1.7.9~6 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=cf9283113151fa4572bfdb639a0934b5a3a052bb;p=nginx.git SSL: safeguard use of SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS. The flag was recently removed by BoringSSL. --- diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index 20f9eea66..d5d4a1ac9 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -1146,11 +1146,15 @@ ngx_ssl_handshake(ngx_connection_t *c) c->recv_chain = ngx_ssl_recv_chain; c->send_chain = ngx_ssl_send_chain; +#ifdef SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS + /* initial handshake done, disable renegotiation (CVE-2009-3555) */ if (c->ssl->connection->s3) { c->ssl->connection->s3->flags |= SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS; } +#endif + return NGX_OK; }