Lines Matching refs:cert_cur
3231 mbedtls_x509_crt *cert_cur = crt; in mbedtls_x509_crt_free() local
3234 while (cert_cur != NULL) { in mbedtls_x509_crt_free()
3235 mbedtls_pk_free(&cert_cur->pk); in mbedtls_x509_crt_free()
3238 mbedtls_free(cert_cur->sig_opts); in mbedtls_x509_crt_free()
3241 mbedtls_asn1_free_named_data_list_shallow(cert_cur->issuer.next); in mbedtls_x509_crt_free()
3242 mbedtls_asn1_free_named_data_list_shallow(cert_cur->subject.next); in mbedtls_x509_crt_free()
3243 mbedtls_asn1_sequence_free(cert_cur->ext_key_usage.next); in mbedtls_x509_crt_free()
3244 mbedtls_asn1_sequence_free(cert_cur->subject_alt_names.next); in mbedtls_x509_crt_free()
3245 mbedtls_asn1_sequence_free(cert_cur->certificate_policies.next); in mbedtls_x509_crt_free()
3246 mbedtls_asn1_sequence_free(cert_cur->authority_key_id.authorityCertIssuer.next); in mbedtls_x509_crt_free()
3248 if (cert_cur->raw.p != NULL && cert_cur->own_buffer) { in mbedtls_x509_crt_free()
3249 mbedtls_zeroize_and_free(cert_cur->raw.p, cert_cur->raw.len); in mbedtls_x509_crt_free()
3252 cert_prv = cert_cur; in mbedtls_x509_crt_free()
3253 cert_cur = cert_cur->next; in mbedtls_x509_crt_free()