enable GOST R 34.10 signatures from netid!=2

This commit is contained in:
orignal 2017-02-19 18:08:10 -05:00
parent 1cb89ce20d
commit 83b9b3bf4a
4 changed files with 25 additions and 0 deletions

View file

@ -122,6 +122,7 @@ namespace i2p
i2p::crypto::InitCrypto (precomputation);
int netID; i2p::config::GetOption("netid", netID);
if (netID != 2) i2p::crypto::InitGost () // init GOST for own darknet
i2p::context.SetNetID (netID);
i2p::context.Init ();
@ -349,6 +350,7 @@ namespace i2p
d.m_WebsocketServer = nullptr;
}
#endif
if (i2p::context.GetNetID () != 2) i2p::crypto::TerminateGost ();
i2p::crypto::TerminateCrypto ();
i2p::log::Logger().Stop();