examples/tls: fix certificates retrieval from SSS
authorGregory Lemercier <g.lemercier@samsung.com>
Tue, 2 May 2017 08:57:49 +0000 (10:57 +0200)
committerEunBong Song <eunb.song@samsung.com>
Tue, 11 Jul 2017 01:26:55 +0000 (10:26 +0900)
commite2a4862361a2f37d1b57710e0b537a79b354dbe7
treebee641f6f3d470131914890a6861ad07d6fa4fe2
parent958d66983811a789295c8d28be218f634d73f12a
examples/tls: fix certificates retrieval from SSS

This patch fixes the way the CA and device certificates are retrieved
from the SSS. Before a common ASN1 tag value was searched with 'strstr',
which was failing to properly split up the certificates. Instead we read
the length value of the ASN1 sequence using the field following the
ASN1 tag, which gives us the offset of the next certificate in the chain.

Change-Id: I39c2cc40cd8be527a039c2922b21b97b9ea4a7f2
Signed-off-by: Gregory Lemercier <g.lemercier@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
apps/examples/tls_client/tls_client_main.c
apps/include/netutils/er-coap/LICENSE [deleted file]
apps/include/netutils/er-coap/er-coap-13.h [deleted file]
apps/include/netutils/er-coap/er-coap-conf.h [deleted file]
apps/include/netutils/er-coap/er-coap-constants.h [deleted file]
apps/netutils/er-coap/Kconfig [deleted file]
apps/netutils/er-coap/LICENSE [deleted file]
apps/netutils/er-coap/Makefile [deleted file]
apps/netutils/er-coap/er-coap-13.c [deleted file]
build/configs/artik053/extra/defconfig