]> git.kaiwu.me - nginx.git/commitdiff
OCSP: fixed invalid type for the 'ssl_ocsp' directive.
authorRoman Semenov <r.semenov@f5.com>
Wed, 22 Oct 2025 18:24:27 +0000 (11:24 -0700)
committerSergey Kandaurov <s.kandaurov@f5.com>
Tue, 23 Dec 2025 18:40:33 +0000 (22:40 +0400)
src/http/modules/ngx_http_ssl_module.c
src/stream/ngx_stream_ssl_module.c

index dbfe5c08bf16ee9c411bacd9af84fbe0be01a389..320d1ee044f2e82cca376f68c929e33c47e834c1 100644 (file)
@@ -230,7 +230,7 @@ static ngx_command_t  ngx_http_ssl_commands[] = {
       NULL },
 
     { ngx_string("ssl_ocsp"),
-      NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_CONF_FLAG,
+      NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_CONF_TAKE1,
       ngx_conf_set_enum_slot,
       NGX_HTTP_SRV_CONF_OFFSET,
       offsetof(ngx_http_ssl_srv_conf_t, ocsp),
index 2f1b996246f542c49aad6d8e7d831c4e6c021e97..ea0b112b883c6b08c98057bdda04aa1e13d966cc 100644 (file)
@@ -232,7 +232,7 @@ static ngx_command_t  ngx_stream_ssl_commands[] = {
       NULL },
 
     { ngx_string("ssl_ocsp"),
-      NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_FLAG,
+      NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE1,
       ngx_conf_set_enum_slot,
       NGX_STREAM_SRV_CONF_OFFSET,
       offsetof(ngx_stream_ssl_srv_conf_t, ocsp),