{
m_mediatorID = {};
}
+ OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "EnrolleeSecurity: Mediator ID %s", m_mediatorID.c_str());
}
void EnrolleeSecurity::onEnrolleeSecuritySafetyCB(OC::PMResultList_t *result,
ownerID = {};
}
+ OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "Mediator ID %s", m_mediatorID.c_str());
+ OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "Enrollee's Owner ID %s", ownerID.c_str());
+
if(ownerID == m_mediatorID)
{
OIC_LOG(INFO, ENROLEE_SECURITY_TAG,
else
{
OIC_LOG(ERROR, ENROLEE_SECURITY_TAG,
- "The found device is already owned by Other Mediator.(FAILED)");
+ "An ownership transfer knowledge is not synchronized between mediator and found enrollee.(FAILED)");
res = ESResult::ES_OWNERSHIP_IS_NOT_SYNCHRONIZED;
return res;
}
bool EnrolleeSecurity::isOwnedDeviceRegisteredInSVRDB()
{
+ OIC_LOG(DEBUG, ENROLEE_SECURITY_TAG, "isOwnedDeviceRegisteredInSVRDB IN");
+
OCStackResult res = OC_STACK_ERROR;
OCUuidList_t *uuidList = NULL;