]> git.kaiwu.me - nginx.git/commit
SSL: server name callback changed to return fatal errors.
authorMaxim Dounin <mdounin@mdounin.ru>
Sun, 3 Mar 2019 13:48:06 +0000 (16:48 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Sun, 3 Mar 2019 13:48:06 +0000 (16:48 +0300)
commit99d7bb690924e60e9e03096ac5e507111f7c182d
treefdd6cce0976c6367af48736fa8a05e656bc45418
parentfd97b2a80f678b9bf372d9a6537e5d4db51188ae
SSL: server name callback changed to return fatal errors.

Notably this affects various allocation errors, and should generally
improve things if an allocation error actually happens during a callback.

Depending on the OpenSSL version, returning an error can result in
either SSL_R_CALLBACK_FAILED or SSL_R_CLIENTHELLO_TLSEXT error from
SSL_do_handshake(), so both errors were switched to the "info" level.
src/event/ngx_event_openssl.c
src/http/ngx_http_request.c