]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Rename the GOST engine 27/head
authorRichard Levitte <richard@levitte.org>
Mon, 26 Jun 2017 07:50:29 +0000 (09:50 +0200)
committerRichard Levitte <richard@levitte.org>
Mon, 26 Jun 2017 07:50:29 +0000 (09:50 +0200)
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

index 285bc2fb2466c44f8a44e5c37f4db6d09914bce0..4ee778fa35224cc39528f43da56bcb9ae9767b3b 100644 (file)
@@ -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)