X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=f24f26c1d26f94e78131ae7c1eb9f8908c25ba1f;hb=9128b0a98a8f89be2830eabca0cdc0b6b344172b;hp=76a7d7972cebb4b4c1a68e3c31dc34d049a2c38b;hpb=6547c44e46129c1d9d32760fa37a1a81fa085231;p=openssl-gost%2Fengine.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 76a7d79..f24f26c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ include(GNUInstallDirs) enable_testing() -find_package(OpenSSL 1.0.2 REQUIRED) +find_package(OpenSSL 1.1.1 REQUIRED) include_directories(${OPENSSL_INCLUDE_DIR}) if (CMAKE_C_COMPILER_ID MATCHES "Clang") @@ -68,8 +68,6 @@ set(GOST_GRASSHOPPER_SOURCE_FILES gost_grasshopper_precompiled.c gost_grasshopper_cipher.h gost_grasshopper_cipher.c - gost_grasshopper_mac.h - gost_grasshopper_mac.c ) set(GOST_CORE_SOURCE_FILES @@ -83,6 +81,7 @@ set(GOST_CORE_SOURCE_FILES gost_keywrap.h gost_lcl.h gost_params.c + gost_keyexpimp.c ) set(GOST_EC_SOURCE_FILES @@ -92,6 +91,7 @@ set(GOST_EC_SOURCE_FILES set (GOST_OMAC_SOURCE_FILES gost_omac.c + gost_omac_acpkm.c ) set(GOST_LIB_SOURCE_FILES @@ -110,6 +110,7 @@ set(GOST_ENGINE_SOURCE_FILES gost_md2012.c gost_pmeth.c gost_omac.c + gost_omac_acpkm.c ) add_executable(test_grasshopper test_grasshopper.c) @@ -117,6 +118,10 @@ target_link_libraries(test_grasshopper gost_engine gost_core ${OPENSSL_CRYPTO_LI add_test(NAME grasshopper COMMAND test_grasshopper) +add_test(NAME engine + COMMAND perl run_tests + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test) + add_library(gost_core STATIC ${GOST_LIB_SOURCE_FILES}) set_target_properties(gost_core PROPERTIES POSITION_INDEPENDENT_CODE ON)