mbedtls: Avoid parsing error
authorDan Mihai <Daniel.Mihai@microsoft.com>
Fri, 18 Aug 2017 04:24:55 +0000 (21:24 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Tue, 22 Aug 2017 01:02:12 +0000 (01:02 +0000)
commitc9ee01fa4f32be91b03d31e4bcea99ff40fd7b1d
tree6d8601dacb919e1a135b79493bb7abcdf39694de
parentfa2c5958f182c52ab05d3e40b0de55165671d66d
mbedtls: Avoid parsing error

Missing public key was already detected by checking for an
MBEDTLS_ERR_ASN1_UNEXPECTED_TAG error code. But, (p == end) also means
that the public key is missing.

Change-Id: I22861c73fca83bb3d92986e56fadf1778b4c404c
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Bug: https://jira.iotivity.org/browse/IOT-2623
Reviewed-on: https://gerrit.iotivity.org/gerrit/21987
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
extlibs/mbedtls/ocf.patch