mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed race condition of openssl calls
This commit is contained in:
parent
8daa7561fa
commit
ef4dc3cbc9
5 changed files with 45 additions and 3 deletions
7
api.cpp
7
api.cpp
|
@ -7,6 +7,7 @@
|
|||
#include "RouterContext.h"
|
||||
#include "Identity.h"
|
||||
#include "Destination.h"
|
||||
#include "Crypto.h"
|
||||
#include "util.h"
|
||||
#include "api.h"
|
||||
|
||||
|
@ -18,9 +19,15 @@ namespace api
|
|||
{
|
||||
i2p::util::filesystem::SetAppName (appName);
|
||||
i2p::util::config::OptionParser(argc, argv);
|
||||
i2p::crypto::InitCrypto ();
|
||||
i2p::context.Init ();
|
||||
}
|
||||
|
||||
void TerminateI2P ()
|
||||
{
|
||||
i2p::crypto::TerminateCrypto ();
|
||||
}
|
||||
|
||||
void StartI2P (std::ostream * logStream)
|
||||
{
|
||||
if (logStream)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue