mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 04:12:40 +08:00
Mail: fixed build without SSL.
Broken by d84f13618277 and 12ea1de7d87c (1.19.8). Reported by Sergey Osokin.
This commit is contained in:
parent
6b06660e07
commit
3bbec30739
@ -1135,10 +1135,10 @@ ngx_mail_auth_http_create_request(ngx_mail_session_t *s, ngx_pool_t *pool,
|
||||
size_t len;
|
||||
ngx_buf_t *b;
|
||||
ngx_str_t login, passwd;
|
||||
ngx_connection_t *c;
|
||||
#if (NGX_MAIL_SSL)
|
||||
ngx_str_t verify, subject, issuer, serial, fingerprint,
|
||||
raw_cert, cert;
|
||||
ngx_connection_t *c;
|
||||
ngx_mail_ssl_conf_t *sslcf;
|
||||
#endif
|
||||
ngx_mail_core_srv_conf_t *cscf;
|
||||
@ -1151,9 +1151,10 @@ ngx_mail_auth_http_create_request(ngx_mail_session_t *s, ngx_pool_t *pool,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
c = s->connection;
|
||||
|
||||
#if (NGX_MAIL_SSL)
|
||||
|
||||
c = s->connection;
|
||||
sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module);
|
||||
|
||||
if (c->ssl && sslcf->verify) {
|
||||
|
@ -272,16 +272,17 @@ ngx_mail_proxy_protocol_handler(ngx_event_t *rev)
|
||||
static void
|
||||
ngx_mail_init_session_handler(ngx_event_t *rev)
|
||||
{
|
||||
ngx_connection_t *c;
|
||||
ngx_mail_session_t *s;
|
||||
ngx_connection_t *c;
|
||||
|
||||
c = rev->data;
|
||||
s = c->data;
|
||||
|
||||
#if (NGX_MAIL_SSL)
|
||||
{
|
||||
ngx_mail_session_t *s;
|
||||
ngx_mail_ssl_conf_t *sslcf;
|
||||
|
||||
s = c->data;
|
||||
|
||||
sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module);
|
||||
|
||||
if (sslcf->enable || s->ssl) {
|
||||
|
Loading…
Reference in New Issue
Block a user