Lines Matching refs:ver_chain
383 mbedtls_x509_crt_verify_chain *ver_chain) in x509_crt_verify_chain_reset() argument
388 ver_chain->items[i].crt = NULL; in x509_crt_verify_chain_reset()
389 ver_chain->items[i].flags = (uint32_t) -1; in x509_crt_verify_chain_reset()
392 ver_chain->len = 0; in x509_crt_verify_chain_reset()
395 ver_chain->trust_ca_cb_result = NULL; in x509_crt_verify_chain_reset()
2362 mbedtls_x509_crt_verify_chain *ver_chain, in x509_crt_verify_chain() argument
2382 *ver_chain = rs_ctx->ver_chain; /* struct copy */ in x509_crt_verify_chain()
2386 cur = &ver_chain->items[ver_chain->len - 1]; in x509_crt_verify_chain()
2401 cur = &ver_chain->items[ver_chain->len]; in x509_crt_verify_chain()
2404 ver_chain->len++; in x509_crt_verify_chain()
2431 if (ver_chain->len == 1 && in x509_crt_verify_chain()
2444 mbedtls_x509_crt_free(ver_chain->trust_ca_cb_result); in x509_crt_verify_chain()
2445 mbedtls_free(ver_chain->trust_ca_cb_result); in x509_crt_verify_chain()
2446 ver_chain->trust_ca_cb_result = NULL; in x509_crt_verify_chain()
2448 ret = f_ca_cb(p_ca_cb, child, &ver_chain->trust_ca_cb_result); in x509_crt_verify_chain()
2453 cur_trust_ca = ver_chain->trust_ca_cb_result; in x509_crt_verify_chain()
2465 ver_chain->len - 1, self_cnt, rs_ctx); in x509_crt_verify_chain()
2472 rs_ctx->ver_chain = *ver_chain; /* struct copy */ in x509_crt_verify_chain()
2489 if (ver_chain->len != 1 && in x509_crt_verify_chain()
2497 ver_chain->len > MBEDTLS_X509_MAX_INTERMEDIATE_CA) { in x509_crt_verify_chain()
2607 const mbedtls_x509_crt_verify_chain *ver_chain, in x509_crt_merge_flags_with_cb() argument
2616 for (i = ver_chain->len; i != 0; --i) { in x509_crt_merge_flags_with_cb()
2617 cur = &ver_chain->items[i-1]; in x509_crt_merge_flags_with_cb()
2665 mbedtls_x509_crt_verify_chain ver_chain; in x509_crt_verify_restartable_ca_cb() local
2670 x509_crt_verify_chain_reset(&ver_chain); in x509_crt_verify_restartable_ca_cb()
2696 &ver_chain, rs_ctx); in x509_crt_verify_restartable_ca_cb()
2703 ver_chain.items[0].flags |= ee_flags; in x509_crt_verify_restartable_ca_cb()
2706 ret = x509_crt_merge_flags_with_cb(flags, &ver_chain, f_vrfy, p_vrfy); in x509_crt_verify_restartable_ca_cb()
2711 mbedtls_x509_crt_free(ver_chain.trust_ca_cb_result); in x509_crt_verify_restartable_ca_cb()
2712 mbedtls_free(ver_chain.trust_ca_cb_result); in x509_crt_verify_restartable_ca_cb()
2713 ver_chain.trust_ca_cb_result = NULL; in x509_crt_verify_restartable_ca_cb()
2872 x509_crt_verify_chain_reset(&ctx->ver_chain); in mbedtls_x509_crt_restart_init()