summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2024-02-14 08:08:01 +0000
committerTomas Mraz <tomas@openssl.org>2024-02-16 16:15:38 +0100
commit28c7f52612805c4ec0816ff1310222acd069de7d (patch)
tree989cbefc07ffe8d681ca14397a0a324c59f8d84e /test
parent5c16e9d384d1d0f4784352633044610a1f264027 (diff)
QUIC: Test that SSL_ctrl, SSL_set_mode are routed correctly on QSSOs
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23581)
Diffstat (limited to 'test')
-rw-r--r--test/quicapitest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/quicapitest.c b/test/quicapitest.c
index 9a1034b7b7..90a418e5f1 100644
--- a/test/quicapitest.c
+++ b/test/quicapitest.c
@@ -904,6 +904,9 @@ static int test_bio_ssl(void)
if (i == 1)
break;
+ if (!TEST_true(SSL_set_mode(clientquic, 0)))
+ goto err;
+
/*
* Now create a new stream and repeat. The bottom two bits of the stream
* id represents whether the stream is bidi and whether it is client
@@ -915,6 +918,9 @@ static int test_bio_ssl(void)
if (!TEST_ptr(stream))
goto err;
+ if (!TEST_true(SSL_set_mode(stream, 0)))
+ goto err;
+
thisbio = strbio = BIO_new(BIO_f_ssl());
if (!TEST_ptr(strbio))
goto err;