aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_uwsgi_module.c
diff options
context:
space:
mode:
author蕭澧邦 <shou692199@gmail.com>2024-11-03 14:36:17 +0800
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>2024-11-11 22:29:55 +0400
commitea15896c1a5b0ce504f85c1437bae21a542cf3e6 (patch)
tree418e0f2fe48a2783af36a2fd9ba700c262ef644b /src/http/modules/ngx_http_uwsgi_module.c
parent29aec5720fdfc74dca8d99d5cf6dc0fcb4e4ce2f (diff)
downloadnginx-ea15896c1a5b0ce504f85c1437bae21a542cf3e6.tar.gz
nginx-ea15896c1a5b0ce504f85c1437bae21a542cf3e6.zip
SSL: fixed MSVC compilation after ebd18ec1812b.
MSVC generates a compilation error in case #if/#endif is used in a macro parameter.
Diffstat (limited to 'src/http/modules/ngx_http_uwsgi_module.c')
-rw-r--r--src/http/modules/ngx_http_uwsgi_module.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c
index f2a8dbe6a..2af5a930a 100644
--- a/src/http/modules/ngx_http_uwsgi_module.c
+++ b/src/http/modules/ngx_http_uwsgi_module.c
@@ -1877,12 +1877,16 @@ ngx_http_uwsgi_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
ngx_conf_merge_value(conf->upstream.ssl_session_reuse,
prev->upstream.ssl_session_reuse, 1);
+#ifndef SSL_OP_NO_TLSv1_2
ngx_conf_merge_bitmask_value(conf->ssl_protocols, prev->ssl_protocols,
(NGX_CONF_BITMASK_SET
-#ifndef SSL_OP_NO_TLSv1_2
|NGX_SSL_TLSv1|NGX_SSL_TLSv1_1
-#endif
|NGX_SSL_TLSv1_2|NGX_SSL_TLSv1_3));
+#else
+ ngx_conf_merge_bitmask_value(conf->ssl_protocols, prev->ssl_protocols,
+ (NGX_CONF_BITMASK_SET
+ |NGX_SSL_TLSv1_2|NGX_SSL_TLSv1_3));
+#endif
ngx_conf_merge_str_value(conf->ssl_ciphers, prev->ssl_ciphers,
"DEFAULT");