mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
correct GOST engine initialization
This commit is contained in:
parent
192b484a8c
commit
d75b916153
1 changed files with 3 additions and 0 deletions
|
@ -831,6 +831,9 @@ namespace crypto
|
||||||
g_GostEngine = ENGINE_by_id ("gost");
|
g_GostEngine = ENGINE_by_id ("gost");
|
||||||
if (!g_GostEngine) return false;
|
if (!g_GostEngine) return false;
|
||||||
|
|
||||||
|
ENGINE_init (g_GostEngine);
|
||||||
|
ENGINE_set_default (g_GostEngine, ENGINE_METHOD_ALL);
|
||||||
|
ENGINE_ctrl_cmd_string(g_GostEngine, "CRYPT_PARAMS", "id-Gost28147-89-CryptoPro-A-ParamSet", 0);
|
||||||
g_Gost3411 = ENGINE_get_digest(g_GostEngine, NID_id_GostR3411_94);
|
g_Gost3411 = ENGINE_get_digest(g_GostEngine, NID_id_GostR3411_94);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue