~titusx/nginx/mainline

Viewing all changes in revision 6519.

  • Committer: Maxim Dounin
  • Date: 2019-02-25 18:16:26 UTC
  • Revision ID: git-v1:1a30d79c429cb1d4438d592db62cbe701e3b4360
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: