Fix TLS 1.3

This commit is contained in:
Zhi Guan
2026-06-21 09:18:23 +08:00
parent 08b925207e
commit 27908d8af1
4 changed files with 144 additions and 29 deletions

View File

@@ -5,6 +5,11 @@ function(gmssl_require_file file)
endfunction()
function(gmssl_run_command_interop_test)
if(POLICY CMP0053)
cmake_policy(PUSH)
cmake_policy(SET CMP0053 NEW)
endif()
set(one_value_args TEST_NAME PORT SERVER_COMMAND CLIENT_COMMAND EXPECT_CLIENT_LOG EXPECT_SERVER_LOG)
cmake_parse_arguments(TEST "" "${one_value_args}" "" ${ARGN})
@@ -81,9 +86,18 @@ function(gmssl_run_command_interop_test)
message(FATAL_ERROR "server log does not contain expected text: ${TEST_EXPECT_SERVER_LOG}")
endif()
endif()
if(POLICY CMP0053)
cmake_policy(POP)
endif()
endfunction()
function(gmssl_run_tls_command_test)
if(POLICY CMP0053)
cmake_policy(PUSH)
cmake_policy(SET CMP0053 NEW)
endif()
set(one_value_args TEST_NAME PORT EXPECT_CLIENT_LOG EXPECT_SERVER_LOG)
set(multi_value_args SERVER_ARGS CLIENT_ARGS)
cmake_parse_arguments(TEST "" "${one_value_args}" "${multi_value_args}" ${ARGN})
@@ -180,4 +194,8 @@ function(gmssl_run_tls_command_test)
message(FATAL_ERROR "server log does not contain expected text: ${TEST_EXPECT_SERVER_LOG}")
endif()
endif()
if(POLICY CMP0053)
cmake_policy(POP)
endif()
endfunction()