From 7902021aebe7ac079906ef85c935199f2ac3859d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 25 Jun 2026 11:07:59 +0200 Subject: [PATCH] Move context verifier to a better place MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In terms of CMake, we want it to be part of the mbedtls_test_helpers object collection, which as the name does not suggest, is actually for SSL, and not part of mbedtls_test which is generic. The easiest way to achieve that is to move the source file to test_helpers which again as the name does not reflect is for SSL. Then we just need ssl_server2 and ssl_client2 to link to mbedtls_test_helpers. Signed-off-by: Manuel Pégourié-Gonnard --- programs/ssl/CMakeLists.txt | 1 + tests/src/{ => test_helpers}/ssl_context_reset_verifier.c | 0 2 files changed, 1 insertion(+) rename tests/src/{ => test_helpers}/ssl_context_reset_verifier.c (100%) diff --git a/programs/ssl/CMakeLists.txt b/programs/ssl/CMakeLists.txt index 4e954f07ef..0088ba0f16 100644 --- a/programs/ssl/CMakeLists.txt +++ b/programs/ssl/CMakeLists.txt @@ -34,6 +34,7 @@ foreach(exe IN LISTS executables) set(extra_sources "") if(exe STREQUAL "ssl_client2" OR exe STREQUAL "ssl_server2") list(APPEND extra_sources + $ ssl_test_lib.c ${MBEDTLS_FRAMEWORK_DIR}/tests/programs/query_config.h ${CMAKE_CURRENT_BINARY_DIR}/../test/query_config.c) diff --git a/tests/src/ssl_context_reset_verifier.c b/tests/src/test_helpers/ssl_context_reset_verifier.c similarity index 100% rename from tests/src/ssl_context_reset_verifier.c rename to tests/src/test_helpers/ssl_context_reset_verifier.c