aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_ssl_module.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-12-06 13:02:36 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-12-06 13:02:36 +0300
commit731915a0c5e90b79d3cca1a4b0a3c33e1f77631c (patch)
tree5282f6ce9982b7dc159b98a04baeedd03a7cb4fc /src/http/modules/ngx_http_ssl_module.c
parentea55dbccb248629628baad2b85d7634c82b613ec (diff)
downloadnginx-731915a0c5e90b79d3cca1a4b0a3c33e1f77631c.tar.gz
nginx-731915a0c5e90b79d3cca1a4b0a3c33e1f77631c.zip
HTTP/3: merged ngx_http_quic_module into ngx_http_v3_module.
Diffstat (limited to 'src/http/modules/ngx_http_ssl_module.c')
-rw-r--r--src/http/modules/ngx_http_ssl_module.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/http/modules/ngx_http_ssl_module.c b/src/http/modules/ngx_http_ssl_module.c
index afeb68462..3af21178b 100644
--- a/src/http/modules/ngx_http_ssl_module.c
+++ b/src/http/modules/ngx_http_ssl_module.c
@@ -416,7 +416,7 @@ ngx_http_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
unsigned char *outlen, const unsigned char *in, unsigned int inlen,
void *arg)
{
-#if (NGX_HTTP_QUIC)
+#if (NGX_HTTP_V3)
const char *fmt;
#endif
unsigned int srvlen;
@@ -424,10 +424,10 @@ ngx_http_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
#if (NGX_DEBUG)
unsigned int i;
#endif
-#if (NGX_HTTP_V2 || NGX_HTTP_QUIC)
+#if (NGX_HTTP_V2 || NGX_HTTP_V3)
ngx_http_connection_t *hc;
#endif
-#if (NGX_HTTP_V2 || NGX_HTTP_QUIC || NGX_DEBUG)
+#if (NGX_HTTP_V2 || NGX_HTTP_V3 || NGX_DEBUG)
ngx_connection_t *c;
c = ngx_ssl_get_connection(ssl_conn);
@@ -441,7 +441,7 @@ ngx_http_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
}
#endif
-#if (NGX_HTTP_V2 || NGX_HTTP_QUIC)
+#if (NGX_HTTP_V2 || NGX_HTTP_V3)
hc = c->data;
#endif
@@ -451,17 +451,14 @@ ngx_http_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
srvlen = sizeof(NGX_HTTP_V2_ALPN_PROTO NGX_HTTP_ALPN_PROTOS) - 1;
} else
#endif
-#if (NGX_HTTP_QUIC)
- if (hc->addr_conf->quic) {
#if (NGX_HTTP_V3)
+ if (hc->addr_conf->quic) {
if (hc->addr_conf->http3) {
srv = (unsigned char *) NGX_HTTP_V3_ALPN_PROTO;
srvlen = sizeof(NGX_HTTP_V3_ALPN_PROTO) - 1;
fmt = NGX_HTTP_V3_ALPN_DRAFT_FMT;
- } else
-#endif
- {
+ } else {
srv = (unsigned char *) NGX_HTTP_QUIC_ALPN_PROTO;
srvlen = sizeof(NGX_HTTP_QUIC_ALPN_PROTO) - 1;
fmt = NGX_HTTP_QUIC_ALPN_DRAFT_FMT;