From: Vitaly Chikunov Date: Thu, 30 Jan 2020 23:24:47 +0000 (+0300) Subject: CMakeLists.txt: Workaround openssl deprecation of HMAC and CMAC primitives X-Git-Tag: v3.0.0~231 X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=commitdiff_plain;h=5dfb598defe4eedcdfb4f8a25604c466f9497b6d;p=openssl-gost%2Fengine.git CMakeLists.txt: Workaround openssl deprecation of HMAC and CMAC primitives Following commits mark CMAC and HMAC primitives deprecated: commit a6d572e60120e0ffb42aece17a085f0fed1b8f6f Author: Pauli Date: Tue Jan 14 10:59:11 2020 +1000 Deprecate the low level CMAC functions commit dbde4726889a19af0a718fe9c5542f39c81acbd3 Author: Pauli Date: Tue Jan 14 12:11:50 2020 +1000 Deprecate the low level HMAC functions Add `-Wno-error=deprecated-declarations' to appropriate targets. References: https://github.com/openssl/openssl/commit/a6d572e601 https://github.com/openssl/openssl/commit/dbde472688 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 36613f1..ea6920e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,11 @@ if (ASAN) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -g3 -fno-omit-frame-pointer") endif() +# DEPRECATEDIN_3_0 CMAC +set_source_files_properties(gost_omac.c PROPERTIES COMPILE_FLAGS -Wno-error=deprecated-declarations) +# DEPRECATEDIN_3_0 HMAC +set_source_files_properties(gost_keyexpimp.c PROPERTIES COMPILE_FLAGS -Wno-error=deprecated-declarations) + set(CMAKE_C_STANDARD 90) CHECK_FUNCTION_EXISTS(clock_gettime HAVE_CLOCK_GETTIME_C) CHECK_LIBRARY_EXISTS(rt clock_gettime "" HAVE_CLOCK_GETTIME_RT)