Lines Matching refs:trust_ca
1895 mbedtls_x509_crt *child, mbedtls_x509_crt *trust_ca, in x509_crt_verify_top() argument
1931 trust_ca = NULL; in x509_crt_verify_top()
1936 for( /* trust_ca */ ; trust_ca != NULL; trust_ca = trust_ca->next ) in x509_crt_verify_top()
1938 if( x509_crt_check_parent( child, trust_ca, 1, path_cnt == 0 ) != 0 ) in x509_crt_verify_top()
1947 if( child->subject_raw.len == trust_ca->subject_raw.len && in x509_crt_verify_top()
1948 memcmp( child->subject_raw.p, trust_ca->subject_raw.p, in x509_crt_verify_top()
1955 if( trust_ca->max_pathlen > 0 && in x509_crt_verify_top()
1956 trust_ca->max_pathlen < check_path_cnt - self_cnt ) in x509_crt_verify_top()
1961 if( mbedtls_x509_time_is_past( &trust_ca->valid_to ) ) in x509_crt_verify_top()
1966 if( mbedtls_x509_time_is_future( &trust_ca->valid_from ) ) in x509_crt_verify_top()
1971 if( mbedtls_pk_verify_ext( child->sig_pk, child->sig_opts, &trust_ca->pk, in x509_crt_verify_top()
1983 if( x509_profile_check_key( profile, child->sig_pk, &trust_ca->pk ) != 0 ) in x509_crt_verify_top()
1994 if( trust_ca != NULL && in x509_crt_verify_top()
1995 ( child->subject_raw.len != trust_ca->subject_raw.len || in x509_crt_verify_top()
1996 memcmp( child->subject_raw.p, trust_ca->subject_raw.p, in x509_crt_verify_top()
2001 *flags |= x509_crt_verifycrl( child, trust_ca, ca_crl, profile ); in x509_crt_verify_top()
2008 if( ( ret = f_vrfy( p_vrfy, trust_ca, path_cnt + 1, in x509_crt_verify_top()
2030 mbedtls_x509_crt *trust_ca, mbedtls_x509_crl *ca_crl, in x509_crt_verify_child() argument
2094 for( grandparent = trust_ca; in x509_crt_verify_child()
2134 ret = x509_crt_verify_child( parent, grandparent, trust_ca, ca_crl, in x509_crt_verify_child()
2142 ret = x509_crt_verify_top( parent, trust_ca, ca_crl, profile, in x509_crt_verify_child()
2164 mbedtls_x509_crt *trust_ca, in mbedtls_x509_crt_verify() argument
2170 return( mbedtls_x509_crt_verify_with_profile( crt, trust_ca, ca_crl, in mbedtls_x509_crt_verify()
2179 mbedtls_x509_crt *trust_ca, in mbedtls_x509_crt_verify_with_profile() argument
2261 for( parent = trust_ca; parent != NULL; parent = parent->next ) in mbedtls_x509_crt_verify_with_profile()
2284 ret = x509_crt_verify_child( crt, parent, trust_ca, ca_crl, profile, in mbedtls_x509_crt_verify_with_profile()
2291 ret = x509_crt_verify_top( crt, trust_ca, ca_crl, profile, in mbedtls_x509_crt_verify_with_profile()