1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Allow setting the G values for the servers in the server.ini

Setting these values is optional. If they are not set in the ini file, default values will be used. This way, we don't have to change all our ini files.
This commit is contained in:
Florian Meißner
2014-01-19 10:06:33 +01:00
parent acb92852c8
commit b0bffa0b5d
3 changed files with 36 additions and 3 deletions

View File

@ -43,13 +43,16 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnNbKeys.h"
// Auth Server
uint32_t kAuthDhGValue = 41;
uint8_t kAuthDhNData[kNetDiffieHellmanKeyBits / 8] = {0};
uint8_t kAuthDhXData[kNetDiffieHellmanKeyBits / 8] = {0};
// Game Server
uint32_t kGameDhGValue = 73;
uint8_t kGameDhNData[kNetDiffieHellmanKeyBits / 8] = {0};
uint8_t kGameDhXData[kNetDiffieHellmanKeyBits / 8] = {0};
// GateKeeper Server
uint32_t kGateKeeperDhGValue = 4;
uint8_t kGateKeeperDhNData[kNetDiffieHellmanKeyBits / 8] = {0};
uint8_t kGateKeeperDhXData[kNetDiffieHellmanKeyBits / 8] = {0};

View File

@ -47,17 +47,17 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnNbConst.h"
// Auth Server
static const unsigned kAuthDhGValue = 41;
extern uint32_t kAuthDhGValue;
extern uint8_t kAuthDhNData[kNetDiffieHellmanKeyBits / 8];
extern uint8_t kAuthDhXData[kNetDiffieHellmanKeyBits / 8];
// Game Server
static const unsigned kGameDhGValue = 73;
extern uint32_t kGameDhGValue;
extern uint8_t kGameDhNData[kNetDiffieHellmanKeyBits / 8];
extern uint8_t kGameDhXData[kNetDiffieHellmanKeyBits / 8];
// GateKeeper Server
static const unsigned kGateKeeperDhGValue = 4;
extern uint32_t kGateKeeperDhGValue;
extern uint8_t kGateKeeperDhNData[kNetDiffieHellmanKeyBits / 8];
extern uint8_t kGateKeeperDhXData[kNetDiffieHellmanKeyBits / 8];