|
@@ -325,7 +325,7 @@ DWORD CAccessAuthEntity::EncryptDataWithPinPad(const CBlob &raw, CBlob &enc)
|
|
|
SetAuthErrMsg((const char *)strErrMsg);
|
|
|
spFunction->SetSysVar("AuthErrMsg", (const char *)strErrMsg, false);
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, ERR_ACCESSAUTH_FROM_PINPAD,
|
|
|
- GetOutPutStr("%s%08x%s%s", "EncryptData", rc, "strErrMsg", strErrMsg).c_str());
|
|
|
+ GetOutPutStr("%s%08x%s%s", "EncryptData", rc, "strErrMsg", (const char*)strErrMsg).c_str());
|
|
|
rc = ERR_ACCESSAUTH_FROM_PINPAD;
|
|
|
}
|
|
|
|
|
@@ -337,7 +337,7 @@ DWORD CAccessAuthEntity::EncryptDataWithPinPad(const CBlob &raw, CBlob &enc)
|
|
|
SetAuthErrMsg((const char *)strErrMsg);
|
|
|
spFunction->SetSysVar("AuthErrMsg", (const char *)strErrMsg, false);
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, ERR_ACCESSAUTH_CONNECT_PINPAD,
|
|
|
- GetOutPutStr("%s%08x%s%s", "Connect", rc, "strErrMsg", strErrMsg).c_str());
|
|
|
+ GetOutPutStr("%s%08x%s%s", "Connect", rc, "strErrMsg", (const char*)strErrMsg).c_str());
|
|
|
rc = ERR_ACCESSAUTH_CONNECT_PINPAD;
|
|
|
pPinPad->SafeDelete();
|
|
|
}
|
|
@@ -354,7 +354,7 @@ DWORD CAccessAuthEntity::EncryptDataWithPinPad(const CBlob &raw, CBlob &enc)
|
|
|
SetAuthErrMsg((const char *)strErrMsg);
|
|
|
spFunction->SetSysVar("AuthErrMsg", (const char *)strErrMsg, false);
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, ERR_ACCESSAUTH_HEX_TO_BYTE,
|
|
|
- GetOutPutStr("%s%s%s%s", "HexStrToByteArray", "False", "strErrMsg", strErrMsg).c_str());
|
|
|
+ GetOutPutStr("%s%s%s%s", "HexStrToByteArray", "False", "strErrMsg", (const char*)strErrMsg).c_str());
|
|
|
return ERR_ACCESSAUTH_HEX_TO_BYTE;
|
|
|
}
|
|
|
|
|
@@ -404,7 +404,7 @@ DWORD CAccessAuthEntity::SaveSM2KeyPair(const CBlob &pubKey, const CBlob &priKey
|
|
|
spFunction->SetSysVar("AuthErrMsg", (const char *)strErrMsg, false);
|
|
|
rc = ERR_ACCESSAUTH_CONNECT_TOKEN_SERVICE;
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, rc,
|
|
|
- GetOutPutStr("%s%08X%s%s", "Connect", rc,"strErrMsg", strErrMsg).c_str());
|
|
|
+ GetOutPutStr("%s%08X%s%s", "Connect", rc,"strErrMsg", (const char*)strErrMsg).c_str());
|
|
|
pTokenServiceClient->SafeDelete();
|
|
|
}
|
|
|
else
|
|
@@ -464,7 +464,7 @@ ErrorCodeEnum CAccessAuthEntity::SaveTokenAndSharedSK(const CBlob &token, const
|
|
|
spFunction->SetSysVar("AuthErrMsg", (const char *)strErrMsg, false);
|
|
|
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, ERR_ACCESSAUTH_FROM_TOKEN_SERVICE_SET_TOKEN,
|
|
|
- GetOutPutStr("%s%08X%s%s", "SetToken", rc,"strErrMsg", strErrMsg).c_str());
|
|
|
+ GetOutPutStr("%s%08X%s%s", "SetToken", rc,"strErrMsg", (const char*)strErrMsg).c_str());
|
|
|
}
|
|
|
|
|
|
TokenService_SetSharedSK_Req req2 = {};
|