|
|
@@ -1069,12 +1069,11 @@ bool CAccessAuthEntity::SaveAuthVerAndKey(int nAuthVer, BYTE *pKey)
|
|
|
}
|
|
|
|
|
|
char privateKey[BUF_SIZE] = { 0 };
|
|
|
+ runInfoPath += SPLIT_SLASH_STR "runcfg" SPLIT_SLASH_STR "Initializer.ini";
|
|
|
#ifdef RVC_OS_WIN
|
|
|
- runInfoPath += "\\runcfg\\Initializer.ini";
|
|
|
GetPrivateProfileString("TerminalPD", "PrivateKey", "", privateKey, BUF_SIZE, runInfoPath.GetData());
|
|
|
#else
|
|
|
- runInfoPath += "/runcfg/Initializer.ini";
|
|
|
- Dbg("·¾¶ex£º%s", runInfoPath.GetData());
|
|
|
+ Dbg("path ex£º%s", runInfoPath.GetData());
|
|
|
char* tmp = inifile_read_str(runInfoPath.GetData(),"TerminalPD", "PrivateKey", "");
|
|
|
strcpy(privateKey, tmp);
|
|
|
delete tmp;
|
|
|
@@ -1392,7 +1391,7 @@ bool CAccessAuthEntity::GetTerminalPublicKey(BYTE *pBuf, int &nBufLen)
|
|
|
Dbg("GetPath runinfo error=%d.", rc);
|
|
|
return false;
|
|
|
}
|
|
|
- runInfoPath += "\\runcfg\\Initializer.ini";
|
|
|
+ runInfoPath += SPLIT_SLASH_STR "runcfg" SPLIT_SLASH_STR "Initializer.ini";
|
|
|
char publicKey[BUF_SIZE] = { 0 };
|
|
|
|
|
|
#ifdef RVC_OS_WIN
|