forked from metin-server/m2dev-client-src
XChaCha20-Poly1305 via libsodium
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <utf8.h>
|
||||
#include <sodium.h>
|
||||
|
||||
extern "C" {
|
||||
extern int _fltused;
|
||||
@@ -290,6 +291,12 @@ static bool Main(HINSTANCE hInstance, LPSTR lpCmdLine)
|
||||
OpenLogFile(false); // false == uses syserr.txt only
|
||||
#endif
|
||||
|
||||
if (sodium_init() < 0)
|
||||
{
|
||||
LogBox("sodium_init() failed");
|
||||
return false;
|
||||
}
|
||||
|
||||
static CLZO lzo;
|
||||
CPackManager packMgr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user