]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC: Test that SSL_ctrl, SSL_set_mode are routed correctly on QSSOs
authorHugo Landau <hlandau@openssl.org>
Wed, 14 Feb 2024 08:08:01 +0000 (08:08 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 16 Feb 2024 15:15:38 +0000 (16:15 +0100)
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)

test/quicapitest.c

index 9a1034b7b7cc5933a9f44f22d5295be0d9a8d08d..90a418e5f1570020ccd429846907002d9ad97004 100644 (file)
@@ -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;