security: CA cert arrives in publicData 83/21983/3
authorDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 17 Aug 2017 19:57:41 +0000 (12:57 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Fri, 18 Aug 2017 21:44:29 +0000 (21:44 +0000)
commit5c72ba419f99da9ecd6cdc145ee85484bc8779d1
tree7ac4d0b99d95b590a331741324a2137b2125a0bf
parent8824bdbd6d47f5381953fcb2a257863576cc680c
security: CA cert arrives in publicData

GetCaCert must pick up this cert from the publicData of the credential
sent by CTT/OBT, rather than optionalData.

This behavior is clarified by OCF Security WG CR1938.

This patch allows CT1.7.8.5: DTLS handshake to make progress. The
handshake still fails later on, for different reasons that are being
investigated.

Change-Id: I76962e9f116ad7acb80a6da6c85fb089ebba3481
https://jira.iotivity.org/browse/IOT-2621
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21983
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/security/src/credresource.c