Fix the incorrect credential access in SRPProvisionTrustCertChain.
authorChul Lee <chuls.lee@samsung.com>
Wed, 28 Sep 2016 02:32:00 +0000 (11:32 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Wed, 5 Oct 2016 09:42:10 +0000 (09:42 +0000)
commitd1e4e09eafc15211e0b0a83d6aa8fb1dad8f979f
treed15eb1cd59a7fced39da0827e43954002e38098e
parent35968df0f54532dd1d1b4daf6838db6c70e00234
Fix the incorrect credential access in SRPProvisionTrustCertChain.

SRPProvisionTrustCertChain deletes credential list.
But this credential list is read from global credential list through GetCredResourceDataByCredId API.
So credential list should not be deleted in SRPProvisionTrustCertChain.

Change-Id: I8c143d320ead4aea99daaa7d6882c11cfddf26e2
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12377
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Greg Zaverucha <gregz@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/provisioning/src/secureresourceprovider.c