]> git.kaiwu.me - nginx.git/commit
SSL: moved c->ssl->handshaked check in server name callback.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 5 Mar 2019 13:34:19 +0000 (16:34 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 5 Mar 2019 13:34:19 +0000 (16:34 +0300)
commit0ad4393e30c119d250415cb769e3d8bc8dce5186
treeaeb76719875f586c250d1d44e2fed066a99e988a
parent0808b04c4690354aab43e0cdfe49588abb942e8c
SSL: moved c->ssl->handshaked check in server name callback.

Server name callback is always called by OpenSSL, even
if server_name extension is not present in ClientHello.  As such,
checking c->ssl->handshaked before the SSL_get_servername() result
should help to more effectively prevent renegotiation in
OpenSSL 1.1.0 - 1.1.0g, where neither SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS
nor SSL_OP_NO_RENEGOTIATION is available.
src/http/ngx_http_request.c