Skip to content

Commit

Permalink
QUIC: Test that SSL_ctrl, SSL_set_mode are routed correctly on QSSOs
Browse files Browse the repository at this point in the history
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 #23581)
  • Loading branch information
hlandau authored and t8m committed Feb 16, 2024
1 parent 5c16e9d commit 28c7f52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/quicapitest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 28c7f52

Please sign in to comment.