parseChain() PEM update
authorOleksii Beketov <ol.beketov@samsung.com>
Thu, 25 Aug 2016 14:38:07 +0000 (17:38 +0300)
committerDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Wed, 7 Sep 2016 15:18:29 +0000 (15:18 +0000)
commite80f054d012f6092b05ca0d2322e2c3125f2ed75
tree712e2111bec582bfcdaf8a78402ddbb51281b408
parent7e61fb4c482b43b7464670b23627abb3c2412811
parseChain() PEM update

parseChain() from ca_adapter_net_tls.c modified in order to parse
PEM certificates. Input buffer may contain either PEM or DER
certificates in a jumble. Each PEM format certificate in a chain
must be terminated with null byte.

Change-Id: Id0e7ff5dddf4af4213dfb0ffe8a8ca05f96581a7
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10741
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
resource/csdk/connectivity/src/adapter_util/ca_adapter_net_tls.c