String key = GetKey(buffer);
String trusted(bundle_get_val(b, TRUSTED_LOCAL));
- SysLog(NID_IO, "Register a message port: [%ls], client = %d", key.GetPointer(), clientId);
+ SysSecureLog(NID_IO, "Register a message port: [%ls], client = %d", key.GetPointer(), clientId);
result r = E_SUCCESS;
int value = -1;
r = __pTrustedPorts->GetValue(key, value);
if (r == E_SUCCESS)
{
- SysTryReturn(NID_IO, value != clientId, MESSAGEPORT_ERROR_IO_ERROR, E_SYSTEM,
+ SysSecureTryReturn(NID_IO, value != clientId, MESSAGEPORT_ERROR_IO_ERROR, E_SYSTEM,
"[E_SYSTEM] The local message port (%ls) has already registered", key.GetPointer());
- SysLog(NID_IO, "Remove garbage values : %ls", key.GetPointer());
+ SysSecureLog(NID_IO, "Remove garbage values : %ls", key.GetPointer());
__pTrustedPorts->Remove(key);
}
r = __pPorts->GetValue(key, value);
if (r == E_SUCCESS)
{
- SysTryReturn(NID_IO, value != clientId, MESSAGEPORT_ERROR_IO_ERROR, E_SYSTEM,
+ SysSecureTryReturn(NID_IO, value != clientId, MESSAGEPORT_ERROR_IO_ERROR, E_SYSTEM,
"[E_SYSTEM] The local message port (%ls) has already registered", key.GetPointer());
- SysLog(NID_IO, "Remove garbage values : %ls", key.GetPointer());
+ SysSecureLog(NID_IO, "Remove garbage values : %ls", key.GetPointer());
__pPorts->Remove(key);
}
String key = GetKey(buffer, false);
String trusted(bundle_get_val(b, TRUSTED_REMOTE));
- SysLog(NID_IO, "Check a remote message port: [%ls]", key.GetPointer());
+ SysSecureLog(NID_IO, "Check a remote message port: [%ls]", key.GetPointer());
bool out = false;
__pPorts->ContainsKey(key, out);
}
- SysTryReturn(NID_IO, out == true, MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND, E_OBJ_NOT_FOUND,
+ SysSecureTryReturn(NID_IO, out == true, MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND, E_OBJ_NOT_FOUND,
"[E_OBJ_NOT_FOUND] The remote message port (%ls) is not found.", key.GetPointer());
if (trusted.Equals(L"TRUE", false))
__pPorts->GetValue(key, value);
if (value == clientId)
{
- SysLog(NID_IO, "Unregister - key = %ls", key.GetPointer());
+ SysSecureLog(NID_IO, "Unregister - key = %ls", key.GetPointer());
__pPorts->Remove(key);
__pTrustedPorts->GetValue(key, value);
if (value == clientId)
{
- SysLog(NID_IO, "Unregister - key = %ls", key.GetPointer());
+ SysSecureLog(NID_IO, "Unregister - key = %ls", key.GetPointer());
__pTrustedPorts->Remove(key);
bundle* b = metadata.b;
String key = GetKey(metadata, false);
- SysLog(NID_IO, "Sends a message to a remote message port [%ls]", key.GetPointer());
+ SysSecureLog(NID_IO, "Sends a message to a remote message port [%ls]", key.GetPointer());
String trustedMessage(bundle_get_val(b, TRUSTED_MESSAGE));
if (trustedMessage.Equals(L"TRUE", false))
r = __pPorts->GetValue(key, clientId);
}
- SysTryReturn(NID_IO, r == E_SUCCESS, MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND, E_OBJ_NOT_FOUND,
+ SysSecureTryReturn(NID_IO, r == E_SUCCESS, MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND, E_OBJ_NOT_FOUND,
"[E_OBJ_NOT_FOUND] The destination message port (%ls) is not found.", key.GetPointer());
if (trustedMessage.Equals(L"TRUE", false))