aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-09-23 13:13:04 +0100
committerSergey Kandaurov <pluknet@nginx.com>2020-09-23 13:13:04 +0100
commit0824d61fc9d28898e7d771825eca2880bc08df8b (patch)
tree4b0d7296c89df91a34abc99cbb57d0ccb1a4ccea /src/http/ngx_http_request.c
parent766fc16f55301bc37bf5403c9ef48661234b0108 (diff)
downloadnginx-0824d61fc9d28898e7d771825eca2880bc08df8b.tar.gz
nginx-0824d61fc9d28898e7d771825eca2880bc08df8b.zip
QUIC: unbreak client certificate verification after 0d2b2664b41c.
Initially, client certificate verification didn't work due to the missing hc->ssl on a QUIC stream, which is started to be set in 7738:7f0981be07c4. Then it was lost in 7999:0d2b2664b41c introducing "quic" listen parameter. This change re-adds hc->ssl back for all QUIC connections, similar to SSL.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index e322fae4b..f1c6fa45c 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -308,6 +308,8 @@ ngx_http_init_connection(ngx_connection_t *c)
ngx_quic_conf_t *qcf;
ngx_http_ssl_srv_conf_t *sscf;
+ hc->ssl = 1;
+
#if (NGX_HTTP_V3)
if (hc->addr_conf->http3) {