Provisioning Manager to send CON request
authorSakthivel Samidurai <sakthivel.samidurai@intel.com>
Fri, 12 Jun 2015 18:46:32 +0000 (11:46 -0700)
committerSachin Agrawal <sachin.agrawal@intel.com>
Mon, 15 Jun 2015 16:07:12 +0000 (16:07 +0000)
Replace non-confirmable request to confirmable for the Provisioning
Manager.

Change-Id: I2cae1564d1c96c1cb35ced97813983467a6d96f2
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1260
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
resource/csdk/security/provisioning/src/provisioningmanager.c

index b2dc7b831554cd2978b4648b305d3346188bb11d..997374d982cf1f48fe85a808e512633185ec557d 100644 (file)
@@ -381,8 +381,7 @@ static CAResult_t sendCARequest(CAURI_t uri, char *payload, int payloadLen,
         CADestroyRemoteEndpoint(endpoint);
         return CA_STATUS_FAILED;
     }
-    // TODO: it can be CA_MSG_NONCONFIRM or CA_MSG_CONFIRM. Pass it as a parameter.
-    CAMessageType_t msgType = CA_MSG_NONCONFIRM;
+    CAMessageType_t msgType = CA_MSG_CONFIRM;
     CAInfo_t requestData = { 0 };
     requestData.token = token;
     requestData.tokenLength  = CA_MAX_TOKEN_LEN;