diff options
author | Matt Caswell <matt@openssl.org> | 2023-05-08 13:51:39 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-05-24 12:18:33 +0100 |
commit | b09e246aba584cd17d1d027f735f238b1b7f082c (patch) | |
tree | 784dda0c9719e08e10f2d56e1856f6f0e6076228 /test | |
parent | 8aff8f89f7bec3865b14b550a4c1a7ec7786e3f3 (diff) | |
download | openssl-b09e246aba584cd17d1d027f735f238b1b7f082c.tar.gz |
Properly handling stream/crypto frames while tracing
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20914)
Diffstat (limited to 'test')
-rw-r--r-- | test/quic_txp_test.c | 4 | ||||
-rw-r--r-- | test/quic_wire_test.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/quic_txp_test.c b/test/quic_txp_test.c index 7e5e0edc7a..7842486a3f 100644 --- a/test/quic_txp_test.c +++ b/test/quic_txp_test.c @@ -1337,7 +1337,7 @@ static int run_script(const struct script_op *script) goto err; break; case OSSL_QUIC_FRAME_TYPE_CRYPTO: - if (!TEST_true(ossl_quic_wire_decode_frame_crypto(&h.pkt, &h.frame.crypto))) + if (!TEST_true(ossl_quic_wire_decode_frame_crypto(&h.pkt, 0, &h.frame.crypto))) goto err; break; @@ -1349,7 +1349,7 @@ static int run_script(const struct script_op *script) case OSSL_QUIC_FRAME_TYPE_STREAM_OFF_FIN: case OSSL_QUIC_FRAME_TYPE_STREAM_OFF_LEN: case OSSL_QUIC_FRAME_TYPE_STREAM_OFF_LEN_FIN: - if (!TEST_true(ossl_quic_wire_decode_frame_stream(&h.pkt, &h.frame.stream))) + if (!TEST_true(ossl_quic_wire_decode_frame_stream(&h.pkt, 0, &h.frame.stream))) goto err; break; diff --git a/test/quic_wire_test.c b/test/quic_wire_test.c index 04e287fbf7..e3cd218e27 100644 --- a/test/quic_wire_test.c +++ b/test/quic_wire_test.c @@ -261,7 +261,7 @@ static int encode_case_6_dec(PACKET *pkt, ossl_ssize_t fail) { OSSL_QUIC_FRAME_CRYPTO f = {0}; - if (!TEST_int_eq(ossl_quic_wire_decode_frame_crypto(pkt, &f), fail < 0)) + if (!TEST_int_eq(ossl_quic_wire_decode_frame_crypto(pkt, 0, &f), fail < 0)) return 0; if (fail >= 0) @@ -358,7 +358,7 @@ static int encode_case_8_dec(PACKET *pkt, ossl_ssize_t fail) */ return 1; - if (!TEST_int_eq(ossl_quic_wire_decode_frame_stream(pkt, &f), fail < 0)) + if (!TEST_int_eq(ossl_quic_wire_decode_frame_stream(pkt, 0, &f), fail < 0)) return 0; if (fail >= 0) @@ -413,7 +413,7 @@ static int encode_case_9_dec(PACKET *pkt, ossl_ssize_t fail) { OSSL_QUIC_FRAME_STREAM f = {0}; - if (!TEST_int_eq(ossl_quic_wire_decode_frame_stream(pkt, &f), fail < 0)) + if (!TEST_int_eq(ossl_quic_wire_decode_frame_stream(pkt, 0, &f), fail < 0)) return 0; if (fail >= 0) |