@@ -138,6 +138,12 @@ set(GOST_HASH_2012_SOURCE_FILES
138138 gosthash2012_sse2.h
139139 )
140140
141+ set (GOST_TLS12_ADDITIONAL_SOURCE_FILES
142+ gost_tls12_additional_kdftree.c
143+ gost_tls12_additional_kexpimp.c
144+ gost_tls12_additional_tlstree.c
145+ )
146+
141147set (GOST_GRASSHOPPER_SOURCE_FILES
142148 gost_grasshopper.h
143149 gost_grasshopper_core.h
@@ -309,11 +315,14 @@ add_test(NAME context-with-provider COMMAND test_context)
309315set_tests_properties (context-with-provider
310316 PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_PROVIDER} " )
311317
312- # test_keyexpimp is an internals testing program, it doesn't need a test env
313- add_executable (test_keyexpimp test_keyexpimp.c )
314- #target_compile_definitions(test_keyexpimp PUBLIC -DOPENSSL_LOAD_CONF)
315- target_link_libraries (test_keyexpimp gost_core gost_err )
316- add_test (NAME keyexpimp COMMAND test_keyexpimp )
318+ add_executable (test_tls12additional test_tls12additional.c )
319+ target_link_libraries (test_tls12additional gost_err gosttls12additional OpenSSL::Crypto )
320+ add_test (NAME tls12additional-with-engine COMMAND test_tls12additional )
321+ set_tests_properties (tls12additional-with-engine
322+ PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_ENGINE} " )
323+ add_test (NAME tls12additional-with-provider COMMAND test_tls12additional )
324+ set_tests_properties (tls12additional-with-provider
325+ PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT_PROVIDER} " )
317326
318327# test_gost89 is an internals testing program, it doesn't need a test env
319328add_executable (test_gost89 test_gost89.c )
@@ -377,7 +386,7 @@ set(BINARY_TESTS_TARGETS
377386 test_derive
378387 test_sign
379388 test_context
380- test_keyexpimp
389+ test_tls12additional
381390 test_gost89
382391 test_tls
383392 test_gosthash
@@ -397,9 +406,13 @@ add_library(gosthash2012 STATIC ${GOST_HASH_2012_SOURCE_FILES})
397406set_target_properties (gosthash2012 PROPERTIES POSITION_INDEPENDENT_CODE ON )
398407target_link_libraries (gosthash2012 PRIVATE OpenSSL::Crypto )
399408
409+ add_library (gosttls12additional STATIC ${GOST_TLS12_ADDITIONAL_SOURCE_FILES} )
410+ set_target_properties (gosttls12additional PROPERTIES POSITION_INDEPENDENT_CODE ON )
411+ target_link_libraries (gosttls12additional PRIVATE OpenSSL::Crypto gost_err )
412+
400413add_library (gost_core STATIC ${GOST_LIB_SOURCE_FILES} )
401414set_target_properties (gost_core PROPERTIES POSITION_INDEPENDENT_CODE ON )
402- target_link_libraries (gost_core PRIVATE OpenSSL::Crypto gost89 gosthash gosthash2012 )
415+ target_link_libraries (gost_core PRIVATE OpenSSL::Crypto gost89 gosthash gosthash2012 gosttls12additional )
403416
404417add_library (gost_err STATIC ${GOST_ERR_SOURCE_FILES} )
405418set_target_properties (gost_err PROPERTIES POSITION_INDEPENDENT_CODE ON )
0 commit comments