Commit 67cb0bb4 authored by Aleksey's avatar Aleksey Committed by Nathan Heldt-Sheller

[IOT-3219] Prevent Iotivity crash at OTM

Change-Id: Ia3436b8ea9da299084b770c4cd048f626a5d7d5a
Signed-off-by: Aleksey's avatarAleksey Volkov <a.volkov@samsung.com>
parent 012b1e65
......@@ -1388,6 +1388,10 @@ static int verifyIdentity( void *data, mbedtls_x509_crt *crt, int depth, uint32_
OC_UNUSED(data); // no need to pass extra data
OC_UNUSED(flags); // we do not remove any flags
static UuidContext_t ctx = { NULL };
if (NULL == g_getIdentityCallback)
{
return MBEDTLS_ERR_X509_FEATURE_UNAVAILABLE;
}
g_getIdentityCallback(&ctx, crt->raw.p, crt->raw.len);
if (0 == depth) // leaf certificate
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment