From: Matt Caswell Date: Tue, 18 Mar 2025 12:49:48 +0000 (+0000) Subject: Test that using the QUIC TLS API does not require BIOs to be set X-Git-Tag: openssl-3.5.0-beta1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c25f0780a5f4f2fc710f44847ebd1457b9a495c4;p=thirdparty%2Fopenssl.git 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) (cherry picked from commit 445c0942cd19d78a96ea5c351c25c2613ab76c56) --- diff --git a/test/sslapitest.c b/test/sslapitest.c index cfa304e1350..caff458985e 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;