summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-30 13:41:39 +0100
committerHugo Landau <hlandau@openssl.org>2023-09-01 14:02:50 +0100
commit7d9e447ab812df34bba581c5918721cc704fdacb (patch)
treee14a4894274d427d184468fe9fe19311abfa62d7 /test
parentcc50b44e555d71a10cdc45588d1b57523fb95ee4 (diff)
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')
-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;
}