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/http/ngx_http_request.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/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 0aca92132..bd2be5eac 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -326,17 +326,11 @@ ngx_http_init_connection(ngx_connection_t *c) #endif #if (NGX_HTTP_SSL) - { - ngx_http_ssl_srv_conf_t *sscf; - - sscf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_ssl_module); - - if (sscf->enable || hc->addr_conf->ssl) { + if (hc->addr_conf->ssl) { hc->ssl = 1; c->log->action = "SSL handshaking"; rev->handler = ngx_http_ssl_handshake; } - } #endif if (hc->addr_conf->proxy_protocol) { |