From 1a69318c73dc30e570850431efd458bd73dd7a99 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Fri, 3 Dec 2021 12:10:33 +0300 Subject: [PATCH] MSVC: Fix unresolved externals (cipher_gost_grasshopper_ctracpkm) Un-inline `cipher_gost_grasshopper_ctracpkm'. Error message: gost_core.lib(gost_omac_acpkm.obj) : error LNK2019: unresolved external symbol cipher_gost_grasshopper_ctracpkm referenced in function CMAC_ACPKM_Init gost.dll : fatal error LNK1120: 1 unresolved externals Signed-off-by: Vitaly Chikunov --- gost_grasshopper_cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gost_grasshopper_cipher.c b/gost_grasshopper_cipher.c index 6723019..001746b 100644 --- a/gost_grasshopper_cipher.c +++ b/gost_grasshopper_cipher.c @@ -933,7 +933,7 @@ static int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX *ctx, int type, int arg, v } /* Called directly by CMAC_ACPKM_Init() */ -const GRASSHOPPER_INLINE EVP_CIPHER *cipher_gost_grasshopper_ctracpkm() +const EVP_CIPHER *cipher_gost_grasshopper_ctracpkm() { return GOST_init_cipher(&grasshopper_ctr_acpkm_cipher); } -- 2.39.2