]> git.kaiwu.me - nginx.git/commitdiff
QUIC: unbreak client certificate verification after 0d2b2664b41c.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 23 Sep 2020 12:13:04 +0000 (13:13 +0100)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 23 Sep 2020 12:13:04 +0000 (13:13 +0100)
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.

src/http/ngx_http_request.c

index e322fae4b7d29641521d22cb91824d941523c9e0..f1c6fa45c1241eda27c6c1baf3fa7c131c8f642a 100644 (file)
@@ -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) {