]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Master is designed to be 1.1.1-compatible.
authorDmitry Belyavskiy <beldmit@gmail.com>
Fri, 17 Aug 2018 14:32:18 +0000 (17:32 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 17 Aug 2018 14:32:18 +0000 (17:32 +0300)
CMakeLists.txt
gost_lcl.h
gost_md.c
gost_md2012.c

index a9375696aae2780107bc46741f64b141616c678e..af73f450def0fd820ea3b232065553fefad859f7 100644 (file)
@@ -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")
@@ -80,7 +80,6 @@ set(GOST_CORE_SOURCE_FILES
         gost_keywrap.c
         gost_keywrap.h
         gost_lcl.h
-        compat.h
         gost_params.c
         )
 
index 528794a5a469cf6485944c75dec3e886d1a3e808..f63f23ce18b39921df706a3838dd20dc3f64a600 100644 (file)
@@ -9,7 +9,6 @@
  *         OpenSSL 0.9.9 libraries required to compile and use        *
  *                              this code                             *
  **********************************************************************/
-# include "compat.h"
 # include <openssl/bn.h>
 # include <openssl/evp.h>
 # include <openssl/dsa.h>
index 4b8e7e5eef4862a0a1874046eff334526c36cec5..5d2c537a7acd95ef49f626490d71ce11014ed00d 100644 (file)
--- a/gost_md.c
+++ b/gost_md.c
@@ -27,9 +27,6 @@ EVP_MD *digest_gost(void)
         EVP_MD *md;
 
         if ((md = EVP_MD_meth_new(NID_id_GostR3411_94, NID_undef)) == NULL
-#if (OPENSSL_VERSION_NUMBER <= 0x10002100L)
-           || !EVP_MD_meth_set_flags(md, EVP_MD_FLAG_PKEY_METHOD_SIGNATURE)
-#endif
             || !EVP_MD_meth_set_result_size(md, 32)
             || !EVP_MD_meth_set_input_blocksize(md, 32)
             || !EVP_MD_meth_set_app_datasize(md,
index 5462dea84c6cf0dc869c155fb47ef0abc08178b6..5acb111d3f20a798acc8b87999111fbe576c4ec9 100644 (file)
@@ -9,7 +9,6 @@
  *                                                                    *
  **********************************************************************/
 
-#include "compat.h"
 #include <openssl/evp.h>
 #include "gosthash2012.h"
 
@@ -38,9 +37,6 @@ EVP_MD *digest_gost2012_256(void)
 
         if ((md =
              EVP_MD_meth_new(NID_id_GostR3411_2012_256, NID_undef)) == NULL
-#if (OPENSSL_VERSION_NUMBER <= 0x10002100L)
-           || !EVP_MD_meth_set_flags(md, EVP_MD_FLAG_PKEY_METHOD_SIGNATURE)
-#endif
             || !EVP_MD_meth_set_result_size(md, 32)
             || !EVP_MD_meth_set_input_blocksize(md, 64)
             || !EVP_MD_meth_set_app_datasize(md, sizeof(gost2012_hash_ctx))
@@ -71,9 +67,6 @@ EVP_MD *digest_gost2012_512(void)
 
         if ((md =
              EVP_MD_meth_new(NID_id_GostR3411_2012_512, NID_undef)) == NULL
-#if (OPENSSL_VERSION_NUMBER <= 0x10002100L)
-           || !EVP_MD_meth_set_flags(md, EVP_MD_FLAG_PKEY_METHOD_SIGNATURE)
-#endif
             || !EVP_MD_meth_set_result_size(md, 64)
             || !EVP_MD_meth_set_input_blocksize(md, 64)
             || !EVP_MD_meth_set_app_datasize(md, sizeof(gost2012_hash_ctx))