2018-10-03 10:25:37 +00:00
|
|
|
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
|
|
|
|
--- a/src/http/ngx_http_request.c
|
|
|
|
+++ b/src/http/ngx_http_request.c
|
|
|
|
@@ -854,7 +854,7 @@ ngx_http_ssl_servername(ngx_ssl_conn_t *
|
|
|
|
|
|
|
|
c = ngx_ssl_get_connection(ssl_conn);
|
|
|
|
|
|
|
|
- if (c->ssl->renegotiation) {
|
|
|
|
+ if (c->ssl->handshaked) {
|
|
|
|
return SSL_TLSEXT_ERR_NOACK;
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -919,6 +919,10 @@ ngx_http_ssl_servername(ngx_ssl_conn_t *
|
2018-10-03 06:38:31 +00:00
|
|
|
#endif
|
|
|
|
|
2018-10-03 10:25:37 +00:00
|
|
|
SSL_set_options(ssl_conn, SSL_CTX_get_options(sscf->ssl.ctx));
|
|
|
|
+
|
2018-10-03 06:38:31 +00:00
|
|
|
+#ifdef SSL_OP_NO_RENEGOTIATION
|
2018-10-03 10:25:37 +00:00
|
|
|
+ SSL_set_options(ssl_conn, SSL_OP_NO_RENEGOTIATION);
|
2018-10-03 06:38:31 +00:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
2018-10-03 10:25:37 +00:00
|
|
|
return SSL_TLSEXT_ERR_OK;
|