Commit 118ac45e authored by Kishen Maloor's avatar Kishen Maloor

Refresh mbedTLS's list of CAs after cred removal

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent f54370ed
...@@ -795,6 +795,9 @@ oc_tls_remove_trust_anchor(oc_sec_cred_t *cred) ...@@ -795,6 +795,9 @@ oc_tls_remove_trust_anchor(oc_sec_cred_t *cred)
oc_list_remove(ca_certs, cert); oc_list_remove(ca_certs, cert);
oc_memb_free(&ca_certs_s, cert); oc_memb_free(&ca_certs_s, cert);
} }
mbedtls_x509_crt_free(&trust_anchors);
mbedtls_x509_crt_init(&trust_anchors);
oc_tls_refresh_trust_anchors();
} }
static int static int
......
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