Skip to content

Commit

Permalink
SSL: deprecated the "ssl" directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdocguard committed Apr 25, 2018
1 parent 76be1ea commit 658a84f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/http/modules/ngx_http_ssl_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,19 @@ static ngx_conf_enum_t ngx_http_ssl_verify[] = {
};


static ngx_conf_deprecated_t ngx_http_ssl_deprecated = {
ngx_conf_deprecated, "ssl", "listen ... ssl"
};


static ngx_command_t ngx_http_ssl_commands[] = {

{ ngx_string("ssl"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_CONF_FLAG,
ngx_http_ssl_enable,
NGX_HTTP_SRV_CONF_OFFSET,
offsetof(ngx_http_ssl_srv_conf_t, enable),
NULL },
&ngx_http_ssl_deprecated },

{ ngx_string("ssl_certificate"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_CONF_TAKE1,
Expand Down
7 changes: 6 additions & 1 deletion src/mail/ngx_mail_ssl_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@ static ngx_conf_enum_t ngx_mail_ssl_verify[] = {
};


static ngx_conf_deprecated_t ngx_mail_ssl_deprecated = {
ngx_conf_deprecated, "ssl", "listen ... ssl"
};


static ngx_command_t ngx_mail_ssl_commands[] = {

{ ngx_string("ssl"),
NGX_MAIL_MAIN_CONF|NGX_MAIL_SRV_CONF|NGX_CONF_FLAG,
ngx_mail_ssl_enable,
NGX_MAIL_SRV_CONF_OFFSET,
offsetof(ngx_mail_ssl_conf_t, enable),
NULL },
&ngx_mail_ssl_deprecated },

{ ngx_string("starttls"),
NGX_MAIL_MAIN_CONF|NGX_MAIL_SRV_CONF|NGX_CONF_TAKE1,
Expand Down

0 comments on commit 658a84f

Please sign in to comment.