]> git.kaiwu.me - nginx.git/commitdiff
SSL: deprecated the "ssl" directive.
authorRuslan Ermilov <ru@nginx.com>
Wed, 25 Apr 2018 11:57:24 +0000 (14:57 +0300)
committerRuslan Ermilov <ru@nginx.com>
Wed, 25 Apr 2018 11:57:24 +0000 (14:57 +0300)
src/http/modules/ngx_http_ssl_module.c
src/mail/ngx_mail_ssl_module.c

index ca33b512cb0dfd9d143b9ef86282a4736efb423f..7e954412715e144c88db6eec95b2e48274c4ff6e 100644 (file)
@@ -71,6 +71,11 @@ 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"),
@@ -78,7 +83,7 @@ static ngx_command_t  ngx_http_ssl_commands[] = {
       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,
index 51810e45c736fdee20d802fe526df3ad2d58fdba..45095979ef21638a3d5bfda37e64e9ff7f0c2948 100644 (file)
@@ -56,6 +56,11 @@ 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"),
@@ -63,7 +68,7 @@ static ngx_command_t  ngx_mail_ssl_commands[] = {
       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,