comparison src/mail/ngx_mail_handler.c @ 9120:0aaa09927703

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).
author Roman Arutyunyan <arut@nginx.com>
date Thu, 08 Jun 2023 14:49:27 +0400
parents ec1071830799
children 9ca12c957304
comparison
equal deleted inserted replaced
9119:08ef02ad5c54 9120:0aaa09927703
281 ngx_mail_session_t *s; 281 ngx_mail_session_t *s;
282 ngx_mail_ssl_conf_t *sslcf; 282 ngx_mail_ssl_conf_t *sslcf;
283 283
284 s = c->data; 284 s = c->data;
285 285
286 sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module); 286 if (s->ssl) {
287
288 if (sslcf->enable || s->ssl) {
289 c->log->action = "SSL handshaking"; 287 c->log->action = "SSL handshaking";
288
289 sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module);
290 290
291 ngx_mail_ssl_init_connection(&sslcf->ssl, c); 291 ngx_mail_ssl_init_connection(&sslcf->ssl, c);
292 return; 292 return;
293 } 293 }
294 294