comparison src/event/ngx_event_quic_protection.c @ 7852:0aa6b02a1546 quic

Store clearflags in pkt->flags after decryption. It doesn't make sense to store protected flags.
author Vladimir Homutov <vl@nginx.com>
date Thu, 30 Apr 2020 12:22:35 +0300
parents 262396242352
children 2d0f4aa78ed6
comparison
equal deleted inserted replaced
7851:8712f4583783 7852:0aa6b02a1546
1013 1013
1014 pnl = (clearflags & 0x03) + 1; 1014 pnl = (clearflags & 0x03) + 1;
1015 pn = ngx_quic_parse_pn(&p, pnl, &mask[1], largest_pn); 1015 pn = ngx_quic_parse_pn(&p, pnl, &mask[1], largest_pn);
1016 1016
1017 pkt->pn = pn; 1017 pkt->pn = pn;
1018 pkt->flags = clearflags;
1018 1019
1019 #ifdef NGX_QUIC_DEBUG_CRYPTO 1020 #ifdef NGX_QUIC_DEBUG_CRYPTO
1020 ngx_quic_hexdump(pkt->log, "quic mask", mask, 5); 1021 ngx_quic_hexdump(pkt->log, "quic mask", mask, 5);
1021 #endif 1022 #endif
1022 1023