mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-27 15:43:42 +08:00
Fix TLS 1.3
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user