[IOT-2729] Update role resource and certhelpers 57/22557/2
authorAlex Kelley <alexke@microsoft.com>
Tue, 19 Sep 2017 19:30:36 +0000 (12:30 -0700)
committerRandeep Singh <randeep.s@samsung.com>
Mon, 25 Sep 2017 12:06:18 +0000 (12:06 +0000)
commitfcf88a2f1a2e4b4ff7c77ae02be3f2d0ad7d264e
tree5847a9337ad76eb1061971c9322e74d48771c3c4
parentb721a607b9f5210e37fc0863ca5ce6691d8a7e4f
[IOT-2729] Update role resource and certhelpers

1. Update OCInternalVerifyRoleCertificate to add the issuer as the
   authority if the role certificate IoTivity received does not
   contain an authority in the subject alternative name.
2. Update GetEndpointRoles to check for OC_STACK_NO_RESOURCE and
   OC_STACK_INVALID_PARAM so it can fall back to symmetric key role
   handling when the connection is not secured with a certificate.

Change-Id: Ieba2bfbbf5edfb32d74c24b5f668a8ee9d530354
Signed-off-by: Alex Kelley <alexke@microsoft.com>
resource/csdk/security/src/certhelpers.c
resource/csdk/security/src/rolesresource.c