Lines Matching refs:ver_chain
385 mbedtls_x509_crt_verify_chain *ver_chain ) in x509_crt_verify_chain_reset() argument
391 ver_chain->items[i].crt = NULL; in x509_crt_verify_chain_reset()
392 ver_chain->items[i].flags = (uint32_t) -1; in x509_crt_verify_chain_reset()
395 ver_chain->len = 0; in x509_crt_verify_chain_reset()
398 ver_chain->trust_ca_cb_result = NULL; in x509_crt_verify_chain_reset()
2812 mbedtls_x509_crt_verify_chain *ver_chain, in x509_crt_verify_chain() argument
2833 *ver_chain = rs_ctx->ver_chain; /* struct copy */ in x509_crt_verify_chain()
2837 cur = &ver_chain->items[ver_chain->len - 1]; in x509_crt_verify_chain()
2852 cur = &ver_chain->items[ver_chain->len]; in x509_crt_verify_chain()
2855 ver_chain->len++; in x509_crt_verify_chain()
2877 if( ver_chain->len == 1 && in x509_crt_verify_chain()
2892 mbedtls_x509_crt_free( ver_chain->trust_ca_cb_result ); in x509_crt_verify_chain()
2893 mbedtls_free( ver_chain->trust_ca_cb_result ); in x509_crt_verify_chain()
2894 ver_chain->trust_ca_cb_result = NULL; in x509_crt_verify_chain()
2896 ret = f_ca_cb( p_ca_cb, child, &ver_chain->trust_ca_cb_result ); in x509_crt_verify_chain()
2900 cur_trust_ca = ver_chain->trust_ca_cb_result; in x509_crt_verify_chain()
2913 ver_chain->len - 1, self_cnt, rs_ctx ); in x509_crt_verify_chain()
2921 rs_ctx->ver_chain = *ver_chain; /* struct copy */ in x509_crt_verify_chain()
2939 if( ver_chain->len != 1 && in x509_crt_verify_chain()
2948 ver_chain->len > MBEDTLS_X509_MAX_INTERMEDIATE_CA ) in x509_crt_verify_chain()
3061 const mbedtls_x509_crt_verify_chain *ver_chain, in x509_crt_merge_flags_with_cb() argument
3070 for( i = ver_chain->len; i != 0; --i ) in x509_crt_merge_flags_with_cb()
3072 cur = &ver_chain->items[i-1]; in x509_crt_merge_flags_with_cb()
3115 mbedtls_x509_crt_verify_chain ver_chain; in x509_crt_verify_restartable_ca_cb() local
3120 x509_crt_verify_chain_reset( &ver_chain ); in x509_crt_verify_restartable_ca_cb()
3144 &ver_chain, rs_ctx ); in x509_crt_verify_restartable_ca_cb()
3150 ver_chain.items[0].flags |= ee_flags; in x509_crt_verify_restartable_ca_cb()
3153 ret = x509_crt_merge_flags_with_cb( flags, &ver_chain, f_vrfy, p_vrfy ); in x509_crt_verify_restartable_ca_cb()
3158 mbedtls_x509_crt_free( ver_chain.trust_ca_cb_result ); in x509_crt_verify_restartable_ca_cb()
3159 mbedtls_free( ver_chain.trust_ca_cb_result ); in x509_crt_verify_restartable_ca_cb()
3160 ver_chain.trust_ca_cb_result = NULL; in x509_crt_verify_restartable_ca_cb()
3375 x509_crt_verify_chain_reset( &ctx->ver_chain ); in mbedtls_x509_crt_restart_init()