Commit cf42b3ed authored by Greg Zaverucha's avatar Greg Zaverucha Committed by Randeep

[IOT-2300] Call callback when delete roles resource

When deleteting roles with OCDeleteRoleCertificateByCredId, the
callback provided by the caller was not being called.

Change-Id: I51da5fe61760ff5561fd676e5c220905f106f512
Signed-off-by: default avatarGreg Zaverucha <gregz@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20269Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarPhil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Randeep's avatarRandeep Singh <randeep.s@samsung.com>
parent e967aab9
...@@ -3480,6 +3480,7 @@ static OCStackApplicationResult SRPDeleteRoleCertificateCB(void *ctx, OCDoHandle ...@@ -3480,6 +3480,7 @@ static OCStackApplicationResult SRPDeleteRoleCertificateCB(void *ctx, OCDoHandle
{ {
OC_UNUSED(UNUSED); OC_UNUSED(UNUSED);
GetSecData_t *getSecData = (GetSecData_t *)ctx; GetSecData_t *getSecData = (GetSecData_t *)ctx;
OCProvisionResultCB resultCallback = getSecData->resultCallback;
OIC_LOG(DEBUG, TAG, "SRPDeleteRoleCertificateCB IN"); OIC_LOG(DEBUG, TAG, "SRPDeleteRoleCertificateCB IN");
...@@ -3489,6 +3490,7 @@ static OCStackApplicationResult SRPDeleteRoleCertificateCB(void *ctx, OCDoHandle ...@@ -3489,6 +3490,7 @@ static OCStackApplicationResult SRPDeleteRoleCertificateCB(void *ctx, OCDoHandle
getSecData->deviceInfo->doxm->deviceID.id, UUID_LENGTH); getSecData->deviceInfo->doxm->deviceID.id, UUID_LENGTH);
getSecData->resArr[(getSecData->numOfResults)].res = clientResponse->result; getSecData->resArr[(getSecData->numOfResults)].res = clientResponse->result;
++(getSecData->numOfResults); ++(getSecData->numOfResults);
resultCallback(getSecData->ctx, getSecData->numOfResults, getSecData->resArr, false);
} }
OIC_LOG(DEBUG, TAG, "SRPDeleteRoleCertificateCB OUT"); OIC_LOG(DEBUG, TAG, "SRPDeleteRoleCertificateCB OUT");
......
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