Add specified response type
authorChul Lee <chuls.lee@samsung.com>
Fri, 5 Aug 2016 01:09:27 +0000 (10:09 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Mon, 8 Aug 2016 05:30:31 +0000 (05:30 +0000)
according to https://gerrit.iotivity.org/gerrit/#/c/9255/.

Change-Id: I4b5a23f8c42084de369dbb5af7a64b7a8d0679c8
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10057
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
resource/csdk/connectivity/src/cablockwisetransfer.c
resource/csdk/security/src/secureresourcemanager.c
resource/csdk/stack/src/ocserverrequest.c

index 5463b32..60882e7 100644 (file)
@@ -593,6 +593,7 @@ static CAResult_t CASendDirectEmptyResponse(const CAEndpoint_t *endpoint, uint16
     };
     respInfo.info.type = CA_MSG_ACKNOWLEDGE;
     respInfo.info.messageId = messageId;
+    respInfo.info.dataType = CA_RESPONSE_DATA;
 
     CAResult_t caResult = CASendResponse(endpoint, &respInfo);
 
index 10b46a8..9806813 100644 (file)
@@ -85,6 +85,7 @@ static void SRMSendUnAuthorizedAccessresponse(PEContext_t *context)
             sizeof(responseInfo.info));
     responseInfo.info.payload = NULL;
     responseInfo.result = CA_UNAUTHORIZED_REQ;
+    responseInfo.info.dataType = CA_RESPONSE_DATA;
 
     if (CA_STATUS_OK == CASendResponse(context->amsMgrContext->endpoint, &responseInfo))
     {
@@ -191,6 +192,7 @@ void SRMRequestHandler(const CAEndpoint_t *endPoint, const CARequestInfo_t *requ
     CAResponseInfo_t responseInfo = {.result = CA_EMPTY};
     memcpy(&responseInfo.info, &(requestInfo->info), sizeof(responseInfo.info));
     responseInfo.info.payload = NULL;
+    responseInfo.info.dataType = CA_RESPONSE_DATA;
 
     VERIFY_NON_NULL(TAG, gRequestHandler, ERROR);
 
index 55a83d6..3be4a73 100644 (file)
@@ -519,6 +519,7 @@ OCStackResult HandleSingleResponse(OCEntityHandlerResponse * ehResponse)
     responseInfo.info.messageId = serverRequest->coapID;
     responseInfo.info.resourceUri = serverRequest->resourceUrl;
     responseInfo.result = ConvertEHResultToCAResult(ehResponse->ehResult, serverRequest->method);
+    responseInfo.info.dataType = CA_RESPONSE_DATA;
 
     if(serverRequest->notificationFlag && serverRequest->qos == OC_HIGH_QOS)
     {