From 445c0942cd19d78a96ea5c351c25c2613ab76c56 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 18 Mar 2025 12:49:48 +0000 Subject: [PATCH] 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 Reviewed-by: Tim Hudson Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27091) --- test/sslapitest.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/sslapitest.c b/test/sslapitest.c index cfa304e135..caff458985 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -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;