ESResult EnrolleeSecurity::requestEnableMOTMode()
{
+ OIC_LOG(DEBUG, ENROLEE_SECURITY_TAG, "requestEnableMOTMode IN");
ESResult res = ESResult:: ES_ERROR;
OC::ResultCallBack changeMOTMethodCB = std::bind(
ESResult EnrolleeSecurity::provisionMOTConfig(const ESOwnershipTransferData& MOTData)
{
+ OIC_LOG(DEBUG, ENROLEE_SECURITY_TAG, "provisionMOTConfig IN");
ESResult res = ESResult:: ES_ERROR;
if(!m_securedResource->isMOTEnabled())
return res;
}
#ifdef MULTIPLE_OWNER
- if( m_securedResource->isMOTSupported())
+ if( m_securedResource->isMOTSupported() &&
+ ownershipTransferData.getMOTMethod() != OIC_OXM_COUNT)
{
res = provisionMOTConfig(ownershipTransferData);
}