Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_protection.c @ 9041:e23fd55e1cc6 quic
QUIC: fixed C4389 MSVC warning about signed/unsigned mismatch.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 22 Nov 2022 18:05:36 +0400 |
parents | 8c0bccdf2743 |
children | 70ce1e927715 |
comparison
equal
deleted
inserted
replaced
9040:8c0bccdf2743 | 9041:e23fd55e1cc6 |
---|---|
986 ngx_quic_decrypt(ngx_quic_header_t *pkt, uint64_t *largest_pn) | 986 ngx_quic_decrypt(ngx_quic_header_t *pkt, uint64_t *largest_pn) |
987 { | 987 { |
988 u_char *p, *sample; | 988 u_char *p, *sample; |
989 size_t len; | 989 size_t len; |
990 uint64_t pn, lpn; | 990 uint64_t pn, lpn; |
991 ngx_int_t pnl, rc, key_phase; | 991 ngx_int_t pnl, rc; |
992 ngx_str_t in, ad; | 992 ngx_str_t in, ad; |
993 ngx_uint_t key_phase; | |
993 ngx_quic_secret_t *secret; | 994 ngx_quic_secret_t *secret; |
994 ngx_quic_ciphers_t ciphers; | 995 ngx_quic_ciphers_t ciphers; |
995 uint8_t nonce[NGX_QUIC_IV_LEN], mask[NGX_QUIC_HP_LEN]; | 996 uint8_t nonce[NGX_QUIC_IV_LEN], mask[NGX_QUIC_HP_LEN]; |
996 | 997 |
997 if (ngx_quic_ciphers(pkt->keys->cipher, &ciphers, pkt->level) == NGX_ERROR) | 998 if (ngx_quic_ciphers(pkt->keys->cipher, &ciphers, pkt->level) == NGX_ERROR) |