Mercurial > hg > nginx-quic
diff src/event/ngx_event_quic_protection.c @ 8212:05b1ee464350 quic
QUIC: hide header creation internals in ngx_event_quic_transport.c.
It doesn't make sense to expose the header type in a public function.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 17 Nov 2020 21:32:06 +0000 |
parents | 9c3be23ddbe7 |
children | 5fdd0ef42232 |
line wrap: on
line diff
--- a/src/event/ngx_event_quic_protection.c +++ b/src/event/ngx_event_quic_protection.c @@ -837,7 +837,7 @@ ngx_quic_create_long_packet(ngx_quic_hea out.len = pkt->payload.len + EVP_GCM_TLS_TAG_LEN; ad.data = res->data; - ad.len = ngx_quic_create_long_header(pkt, ad.data, out.len, &pnp); + ad.len = ngx_quic_create_header(pkt, ad.data, out.len, &pnp); out.data = res->data + ad.len; @@ -895,7 +895,7 @@ ngx_quic_create_short_packet(ngx_quic_he out.len = pkt->payload.len + EVP_GCM_TLS_TAG_LEN; ad.data = res->data; - ad.len = ngx_quic_create_short_header(pkt, ad.data, out.len, &pnp); + ad.len = ngx_quic_create_header(pkt, ad.data, out.len, &pnp); out.data = res->data + ad.len;