From cd03b5dc428568548163890081da99b6e5df11ba Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 29 Jul 2020 15:08:25 -0700 Subject: [PATCH] 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) --- test/sslapitest.c | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 2.47.3