|
|
@@ -18,11 +18,9 @@ using namespace PinPad;
|
|
|
#include "WMIDeviceQuery.h"
|
|
|
#include <WinCrypt.h>
|
|
|
#include <Strsafe.h>
|
|
|
-#include "DeviceBaseClass.h"
|
|
|
#include "MyBase64.h"
|
|
|
-#else
|
|
|
-#include "DeviceBaseClass.h"
|
|
|
#endif
|
|
|
+#include "DeviceBaseClass.h"
|
|
|
|
|
|
extern int HexBuf2StrBuf(PBYTE hexBuf, char** strBuf, DWORD len);
|
|
|
extern int StrBuf2HexBuf(LPCTSTR strBuf, PBYTE* hexBuf);
|
|
|
@@ -620,6 +618,8 @@ bool CAccessAuthEntity::GetTerminalPublicKey(BYTE* pBuf, int& nBufLen, string& p
|
|
|
return false;
|
|
|
}
|
|
|
runInfoPath += SPLIT_SLASH_STR "runcfg" SPLIT_SLASH_STR;
|
|
|
+
|
|
|
+ //TODO: CrossPlaform [Gifur@2025630]
|
|
|
#ifdef RVC_OS_WIN
|
|
|
DWORD dwAttr = GetFileAttributes(runInfoPath.GetData());
|
|
|
if (dwAttr == 0xFFFFFFFF) //目录不存在则创建
|
|
|
@@ -1184,7 +1184,7 @@ void CAccessAuthEntity::GetNetMsg(SpReqAnsContext<AccessAuthService_GetNetMsg_Re
|
|
|
m_FSM.GetNetMsg(ctx);
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+//TODO: CrossPlaform 抽离到公共工具类中? [Gifur@2025630]
|
|
|
bool CAccessAuthEntity::GenerateRandomNum()
|
|
|
{
|
|
|
LOG_FUNCTION();
|
|
|
@@ -1221,7 +1221,6 @@ bool CAccessAuthEntity::GenerateRandomNum()
|
|
|
}
|
|
|
pair<string, string> CAccessAuthEntity::GenerateTmkToKMC()
|
|
|
{
|
|
|
- LOG_FUNCTION();
|
|
|
if (!GenerateRandomNum())
|
|
|
return make_pair("", "");
|
|
|
#ifdef DEVOPS_ON_ST /*DevOps流水线编译,ST环境*/
|