Commit 5c887f36 authored by Parkhi's avatar Parkhi Committed by Uze Choi

Update error handling logic in EnrolleeSecurity.

 - OCSecure::discoverSingleDevice API is updated with another return value.(https://gerrit.iotivity.org/gerrit/#/c/17361/)
   According that patch, EnrolleeSecurity::discoverTargetSecureResource api is updated additional error handling logic.

Change-Id: If0e9c2e1000c1c754386c77f204a7bdd5bd0923b
Signed-off-by: default avatarParkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17363Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent e24e8c80
......@@ -596,7 +596,6 @@ namespace OIC
std::string GattAddress = getResourceDeviceAddress(m_ocResource->host());
if(!GattAddress.empty())
{
result = OCSecure::discoverSingleDeviceInUnicast(ES_SEC_DISCOVERY_TIMEOUT,
&uuid,
GattAddress,
......@@ -604,7 +603,7 @@ namespace OIC
m_securedResource);
if(result != OC_STACK_OK)
{
return ES_ERROR;
return ES_SECURE_RESOURCE_DISCOVERY_FAILURE;
}
}
else
......@@ -620,7 +619,7 @@ namespace OIC
m_securedResource);
if(result != OC_STACK_OK)
{
return ES_ERROR;
return ES_SECURE_RESOURCE_DISCOVERY_FAILURE;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment