Mail: fixed error message about missing ssl_certificate_key.
In 51e1f047d15d, the "ssl" directive name was incorrectly hardcoded
in the error message shown when there are some SSL keys defined, but
not for all certificates. Right approach is to use the "mode" variable,
which can be either "ssl" or "starttls".
Maxim Dounin
4 years ago
349 | 349 | ngx_log_error(NGX_LOG_EMERG, cf->log, 0, |
350 | 350 | "no \"ssl_certificate_key\" is defined " |
351 | 351 | "for certificate \"%V\" and " |
352 | "the \"ssl\" directive in %s:%ui", | |
352 | "the \"%s\" directive in %s:%ui", | |
353 | 353 | ((ngx_str_t *) conf->certificates->elts) |
354 | 354 | + conf->certificates->nelts - 1, |
355 | conf->file, conf->line); | |
355 | mode, conf->file, conf->line); | |
356 | 356 | return NGX_CONF_ERROR; |
357 | 357 | } |
358 | 358 |