From: John Baldwin Date: Wed, 29 Jul 2020 22:08:25 +0000 (-0700) Subject: Skip tests using KTLS RX if KTLS RX is not supported. X-Git-Tag: openssl-3.0.0-alpha7~426 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd03b5dc428568548163890081da99b6e5df11ba;p=thirdparty%2Fopenssl.git Skip tests using KTLS RX if KTLS RX is not supported. This skips tests using KTLS RX when run on systems that only support KTLS TX. Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/12111) --- diff --git a/test/sslapitest.c b/test/sslapitest.c index 0914ac559cc..4ad8c450c19 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -1203,6 +1203,11 @@ static int test_ktls(int test) sis_ktls_tx = (test & 4) != 0; sis_ktls_rx = (test & 8) != 0; +#if defined(OPENSSL_NO_KTLS_RX) + if (cis_ktls_rx || sis_ktls_rx) + return 1; +#endif + testresult = 1; #ifdef OPENSSL_KTLS_AES_GCM_128 testresult &= execute_test_ktls(cis_ktls_tx, cis_ktls_rx, sis_ktls_tx,