Test that using the QUIC TLS API does not require BIOs to be set

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)
This commit is contained in:
Matt Caswell 2025-03-18 12:49:48 +00:00 committed by Tomas Mraz
parent 2100cf2ee0
commit 445c0942cd

View 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;