Skip to content

Commit 12faa7f

Browse files
justanotherminhCyanDevs
authored andcommitted
Fixed CMake configuration for test case openssl_3_tls_e2e
Signed-off-by: Minh Nguyen <nguyen.luongminh297@gmail.com>
1 parent 886273a commit 12faa7f

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

tests/tls_e2e/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ if (BUILD_OPENSSL)
1818
openssl_tls_server_enc $<TARGET_FILE:openssl_tls_client_enc>)
1919
set_enclave_tests_properties(tests/openssl_tls_e2e PROPERTIES
2020
SKIP_RETURN_CODE 2)
21-
2221
add_enclave_test(tests/openssl_3_tls_e2e openssl_tls_e2e_host
23-
openssl_tls_server_enc $<TARGET_FILE:openssl_tls_client_enc>)
22+
openssl_3_tls_server_enc $<TARGET_FILE:openssl_3_tls_client_enc>)
2423
set_enclave_tests_properties(tests/openssl_3_tls_e2e PROPERTIES
2524
SKIP_RETURN_CODE 2)
2625
endif ()

tests/tls_e2e/server_enc/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,20 @@ if (BUILD_OPENSSL)
4646
${CMAKE_CURRENT_BINARY_DIR})
4747

4848
enclave_link_libraries(openssl_tls_server_enc oehostsock oehostresolver)
49+
50+
add_enclave(
51+
TARGET
52+
openssl_3_tls_server_enc
53+
CRYPTO_LIB
54+
openssl_3
55+
SOURCES
56+
openssl_server.cpp
57+
../common/utility.cpp
58+
../common/openssl_utility.cpp
59+
${CMAKE_CURRENT_BINARY_DIR}/tls_e2e_t.c)
60+
61+
enclave_include_directories(openssl_3_tls_server_enc PRIVATE
62+
${CMAKE_CURRENT_BINARY_DIR})
63+
64+
enclave_link_libraries(openssl_3_tls_server_enc oehostsock oehostresolver)
4965
endif ()

0 commit comments

Comments
 (0)