]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Test that using the QUIC TLS API does not require BIOs to be set
authorMatt Caswell <matt@openssl.org>
Tue, 18 Mar 2025 12:49:48 +0000 (12:49 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 20 Mar 2025 10:24:26 +0000 (11:24 +0100)
When using the QUIC TLS API it does not make sense to require BIOs to be
set.

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/27091)

test/sslapitest.c

index cfa304e1350a50915f62018dc0b4362c91308281..caff458985e746e515aa0f297c7892b5d8aba49a 100644 (file)
@@ -12799,6 +12799,10 @@ static int test_quic_tls(int idx)
                                       NULL)))
         goto end;
 
+    /* Reset the BIOs we set in create_ssl_objects. We should not need them */
+    SSL_set_bio(serverssl, NULL, NULL);
+    SSL_set_bio(clientssl, NULL, NULL);
+
     if (!TEST_true(SSL_set_app_data(clientssl, &clientquicdata))
             || !TEST_true(SSL_set_app_data(serverssl, &serverquicdata)))
         goto end;
@@ -12936,6 +12940,10 @@ static int test_quic_tls_early_data(void)
             || !TEST_true(SSL_set_session(clientssl, sess)))
         goto end;
 
+    /* Reset the BIOs we set in create_ssl_objects. We should not need them */
+    SSL_set_bio(serverssl, NULL, NULL);
+    SSL_set_bio(clientssl, NULL, NULL);
+
     if (!TEST_true(SSL_set_app_data(clientssl, &clientquicdata))
         || !TEST_true(SSL_set_app_data(serverssl, &serverquicdata)))
         goto end;