diff options
author | Hugo Landau <hlandau@openssl.org> | 2022-10-31 15:15:26 +0000 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-01-13 13:20:10 +0000 |
commit | 70d45893d0decc1ac2431a20db6750bc70cbaea5 (patch) | |
tree | 686f50f6f6860f5dc86808ed1f2af17e83532817 /test/quic_record_test_util.h | |
parent | 203b0d00e00f524f786f5e911f889cc96e32402d (diff) | |
download | openssl-70d45893d0decc1ac2431a20db6750bc70cbaea5.tar.gz |
QUIC Wire Encoding: Support Retry Integrity Tag Calculation
This adds support for calculating and verifying retry integrity tags. In
order to support this, an 'unused' field is added to the QUIC packet
header structure so we can ensure that the serialization of the header
is bit-for-bit identical to what was decoded.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19703)
Diffstat (limited to 'test/quic_record_test_util.h')
-rw-r--r-- | test/quic_record_test_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/quic_record_test_util.h b/test/quic_record_test_util.h index 51d5db8a6e..2dc0951f2e 100644 --- a/test/quic_record_test_util.h +++ b/test/quic_record_test_util.h @@ -27,6 +27,7 @@ static int cmp_pkt_hdr(const QUIC_PKT_HDR *a, const QUIC_PKT_HDR *b, || !TEST_int_eq(a->pn_len, b->pn_len) || !TEST_int_eq(a->partial, b->partial) || !TEST_int_eq(a->fixed, b->fixed) + || !TEST_int_eq(a->unused, b->unused) || !TEST_uint_eq(a->version, b->version) || !TEST_true(ossl_quic_conn_id_eq(&a->dst_conn_id, &b->dst_conn_id)) || !TEST_true(ossl_quic_conn_id_eq(&a->src_conn_id, &b->src_conn_id)) |