Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 7269:7f955d3b9a0d
SSL: detect "listen ... ssl" without certificates (ticket #178).
In mail and stream modules, no certificate provided is a fatal condition,
much like with the "ssl" and "starttls" directives.
In http, "listen ... ssl" can be used in a non-default server without
certificates as long as there is a certificate in the default one, so
missing certificate is only fatal for default servers.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 24 Apr 2018 15:29:01 +0300 |
parents | 20f139e9ffa8 |
children | 89430899c72a |
comparison
equal
deleted
inserted
replaced
7268:0d8c72ff62dd | 7269:7f955d3b9a0d |
---|---|
3253 cscf->client_header_timeout = NGX_CONF_UNSET_MSEC; | 3253 cscf->client_header_timeout = NGX_CONF_UNSET_MSEC; |
3254 cscf->client_header_buffer_size = NGX_CONF_UNSET_SIZE; | 3254 cscf->client_header_buffer_size = NGX_CONF_UNSET_SIZE; |
3255 cscf->ignore_invalid_headers = NGX_CONF_UNSET; | 3255 cscf->ignore_invalid_headers = NGX_CONF_UNSET; |
3256 cscf->merge_slashes = NGX_CONF_UNSET; | 3256 cscf->merge_slashes = NGX_CONF_UNSET; |
3257 cscf->underscores_in_headers = NGX_CONF_UNSET; | 3257 cscf->underscores_in_headers = NGX_CONF_UNSET; |
3258 | |
3259 cscf->file_name = cf->conf_file->file.name.data; | |
3260 cscf->line = cf->conf_file->line; | |
3258 | 3261 |
3259 return cscf; | 3262 return cscf; |
3260 } | 3263 } |
3261 | 3264 |
3262 | 3265 |