]> git.kaiwu.me - nginx.git/commit
SSL: fixed possible segfault with dynamic certificates.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 25 Feb 2019 18:16:26 +0000 (21:16 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 25 Feb 2019 18:16:26 +0000 (21:16 +0300)
commit1a30d79c429cb1d4438d592db62cbe701e3b4360
tree230b57e48c8b2c75e5135db370bc7ae8e9f0ecd5
parentecfab06cb20959219c9aadc2ef59507488e4fa99
SSL: fixed possible segfault with dynamic certificates.

A virtual server may have no SSL context if it does not have certificates
defined, so we have to use config of the ngx_http_ssl_module from the
SSL context in the certificate callback.  To do so, it is now passed as
the argument of the callback.

The stream module doesn't really need any changes, but was modified as
well to match http code.
src/http/modules/ngx_http_ssl_module.c
src/http/ngx_http_request.c
src/stream/ngx_stream_ssl_module.c