From 83cbbc5b7cd9fce68ea96dea2d4c525e2292d06e Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 26 Jun 2017 09:50:29 +0200 Subject: [PATCH] Rename the GOST engine The GOST engine file was "libgost_engine.so". Unfortunately, this will fail to load with any OpenSSL version, as the derived engine ID will be "gost_engine" (OpenSSL <1.1.0) or "libgost_engine" (OpenSSL >=1.1.0), since the engine checks the ID internally against "gost". To make the IDs compatible, make sure the file name will be "gost.so" --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 285bc2f..4ee778f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,6 +100,7 @@ add_library(gost STATIC ${GOST_LIB_SOURCE_FILES}) set_target_properties(gost PROPERTIES POSITION_INDEPENDENT_CODE ON) add_library(gost_engine MODULE ${GOST_ENGINE_SOURCE_FILES}) +set_target_properties(gost_engine PROPERTIES PREFIX "" OUTPUT_NAME "gost") target_link_libraries(gost_engine crypto gost) -- 2.39.5