diff options
author | Roman Arutyunyan <arut@nginx.com> | 2023-06-08 14:49:27 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2023-06-08 14:49:27 +0400 |
commit | d32f66f1e8dc81a0edbadbacf74191684a653d09 (patch) | |
tree | 55364ba4aaf4505317f5993f52e5c94f9a78885b /src/mail/ngx_mail_handler.c | |
parent | aefd862ab197c3ab49001fcf69be478aab5b0f4e (diff) | |
download | nginx-d32f66f1e8dc81a0edbadbacf74191684a653d09.tar.gz nginx-d32f66f1e8dc81a0edbadbacf74191684a653d09.zip |
SSL: removed the "ssl" directive.
It has been deprecated since 7270:46c0c7ef4913 (1.15.0) in favour of
the "ssl" parameter of the "listen" directive, which has been available
since 2224:109849282793 (0.7.14).
Diffstat (limited to 'src/mail/ngx_mail_handler.c')
-rw-r--r-- | src/mail/ngx_mail_handler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c index 246ba97cf..1167df3fb 100644 --- a/src/mail/ngx_mail_handler.c +++ b/src/mail/ngx_mail_handler.c @@ -283,11 +283,11 @@ ngx_mail_init_session_handler(ngx_event_t *rev) s = c->data; - sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module); - - if (sslcf->enable || s->ssl) { + if (s->ssl) { c->log->action = "SSL handshaking"; + sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module); + ngx_mail_ssl_init_connection(&sslcf->ssl, c); return; } |