Update snapshot(2018-02-21) 43/170843/1
authorAmit <amit.s12@samsung.com>
Thu, 22 Feb 2018 13:33:05 +0000 (19:03 +0530)
committerAmit <amit.s12@samsung.com>
Thu, 22 Feb 2018 13:33:05 +0000 (19:03 +0530)
Change-Id: If48db62676078c273b7e10feb9a4cc67f8307453
Signed-off-by: Amit <amit.s12@samsung.com>
packaging/snapshot_history.txt
resource/csdk/security/src/credresource.c
resource/csdk/security/src/doxmresource.c
service/easy-setup/inc/escommon.h [changed mode: 0755->0644]

index 088559d..c921699 100755 (executable)
@@ -1,3 +1,9 @@
+http://suprem.sec.samsung.net/jira/browse/CONPRO-1237
+
+commit_info_2018-02-21.txt
+
+commit_id: aa7649f561c5e2d806aa4bd6aa94d258da6f7433 
+----------------------------------------------------------------------------------------------------------------------------------
 http://suprem.sec.samsung.net/jira/browse/CONPRO-1230
 
 commit_info_2018-02-14.txt
index 34fc6f4..ad0e8b7 100644 (file)
@@ -2362,8 +2362,11 @@ exit:
 OCStackResult DeInitCredResource()
 {
     OCStackResult result = OCDeleteResource(gCredHandle);
-    DeleteCredList(gCred);
-    gCred = NULL;
+    gCredHandle = NULL;
+    if(gCred){
+        DeleteCredList(gCred);
+        gCred = NULL;
+    }
     return result;
 }
 
index 6ee4b26..999c016 100644 (file)
@@ -1238,6 +1238,16 @@ static OCEntityHandlerResult HandleDoxmPostRequest(OCEntityHandlerRequest * ehRe
                     InvokeOtmEventHandler(ehRequest->devAddr.addr, ehRequest->devAddr.port,
                                           NULL, OIC_OTM_STARTED);
                 }
+                else
+                {
+                    OIC_LOG_V(INFO, TAG, "%s: request owner not empty",__func__);
+                    char* strUuid = NULL;
+                    if (OC_STACK_OK == ConvertUuidToStr(&newDoxm->owner, &strUuid))
+                    {
+                        OIC_LOG_V(INFO, TAG, "%s: request owner: %s",__func__, strUuid);
+                        OICFree(strUuid);
+                    }
+                }
 #endif
 
                 if (OIC_JUST_WORKS == newDoxm->oxmSel || OIC_MV_JUST_WORKS == newDoxm->oxmSel)
old mode 100755 (executable)
new mode 100644 (file)
index e46664b..1ce4c1c
@@ -339,6 +339,11 @@ typedef enum
     ES_STATE_FAILED_TO_PUBLISH_RESOURCES_TO_CLOUD,
 
     /**
+     * Status indicating aborted provisioning by enrollee
+     */
+    ES_STATE_ABORTED_PROVISIONING_BY_ENROLLEE,
+
+    /**
      * End of Easy setup status
      */
     ES_STATE_EOF = 255