[IOT-1949] De-duplicate roles posted to /oic/sec/roles
authorGreg Zaverucha <gregz@microsoft.com>
Fri, 7 Apr 2017 00:52:16 +0000 (17:52 -0700)
committerKevin Kane <kkane@microsoft.com>
Tue, 18 Apr 2017 15:52:25 +0000 (15:52 +0000)
commit618d5643591b37246fb06526a30041a31a6ba943
treef1af700c07dcbd07bf1330f6acf7d5a08d2ef348
parent5767203911c874ab2b2b027db372996b6904e99b
[IOT-1949] De-duplicate roles posted to /oic/sec/roles

If a role certificate is added a second time to the roles
resource, do not add it again.

Change-Id: Ifce27b93404216fb2bbac5b02aeb414a75f0398c
Signed-off-by: Greg Zaverucha <gregz@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18831
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
resource/csdk/security/include/internal/credresource.h
resource/csdk/security/src/credresource.c
resource/csdk/security/src/rolesresource.c