Destroy Secure resources during system shut-down
authorSachin Agrawal <sachin.agrawal@intel.com>
Tue, 22 Sep 2015 22:10:02 +0000 (15:10 -0700)
committerSachin Agrawal <sachin.agrawal@intel.com>
Thu, 24 Sep 2015 03:56:45 +0000 (03:56 +0000)
Secure resources which were recently added were not being
destroyed during system shutdown. Added API calls to enable
proper de-allocation.

Change-Id: I1fcaf2218d8957138a87e1ffab14d07c78bebe5c
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2955
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
resource/csdk/security/src/resourcemanager.c

index f37a0be..19fb099 100644 (file)
@@ -130,6 +130,11 @@ OCStackResult DestroySecureResources( )
     DeInitCredResource();
     DeInitDoxmResource();
     DeInitPstatResource();
+#ifdef __WITH_X509__
+    DeInitCRLResource();
+#endif // __WITH_X509__
+    DeInitSVCResource();
+    DeInitAmaclResource();
 
     return OC_STACK_OK;
 }