summaryrefslogtreecommitdiffstats
path: root/test/quic_multistream_test.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-30 14:41:39 +0200
committerHugo Landau <hlandau@openssl.org>2023-09-01 15:02:50 +0200
commit7d9e447ab812df34bba581c5918721cc704fdacb (patch)
treee14a4894274d427d184468fe9fe19311abfa62d7 /test/quic_multistream_test.c
parentDocument OSSL_get_thread_support_flags() (diff)
downloadopenssl-7d9e447ab812df34bba581c5918721cc704fdacb.tar.xz
openssl-7d9e447ab812df34bba581c5918721cc704fdacb.zip
QUIC API: Revise SSL_get_conn_close_info to use a flags field
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21905)
Diffstat (limited to 'test/quic_multistream_test.c')
-rw-r--r--test/quic_multistream_test.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index 81e05dbf2e..3b2b5ed6ca 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -1385,8 +1385,12 @@ static int run_script_worker(struct helper *h, const struct script_op *script,
if (!SSL_get_conn_close_info(c_tgt, &cc_info, sizeof(cc_info)))
SPIN_AGAIN();
- if (!TEST_int_eq(expect_app, !cc_info.is_transport)
- || !TEST_int_eq(expect_remote, !cc_info.is_local)
+ if (!TEST_int_eq(expect_app,
+ (cc_info.flags
+ & SSL_CONN_CLOSE_FLAG_TRANSPORT) == 0)
+ || !TEST_int_eq(expect_remote,
+ (cc_info.flags
+ & SSL_CONN_CLOSE_FLAG_LOCAL) == 0)
|| !TEST_uint64_t_eq(error_code, cc_info.error_code))
goto out;
}