Mercurial > hg > nginx-quic
diff src/event/ngx_event_quic_protection.c @ 7773:dc7ac778aafe quic
Introduced packet namespace in QUIC connection.
The structure contains all data that is related to the namespace:
packet number and output queue (next patch).
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 01 Apr 2020 14:31:08 +0300 |
parents | 058a5af7ddfc |
children | 7ac890c18f5e |
line wrap: on
line diff
--- a/src/event/ngx_event_quic_protection.c +++ b/src/event/ngx_event_quic_protection.c @@ -673,7 +673,7 @@ ngx_quic_create_long_packet(ngx_quic_hea } ngx_memcpy(nonce, pkt->secret->iv.data, pkt->secret->iv.len); - pn = *pkt->number; + pn = pkt->number; nonce[11] ^= pn; ngx_quic_hexdump0(pkt->log, "server_iv", pkt->secret->iv.data, 12); @@ -731,7 +731,7 @@ ngx_quic_create_short_packet(ngx_quic_he if (pkt->level == ssl_encryption_handshake || pkt->level == ssl_encryption_application) { - nonce[11] ^= *pkt->number; + nonce[11] ^= pkt->number; } ngx_quic_hexdump0(pkt->log, "server_iv", pkt->secret->iv.data, 12);