Lines Matching refs:child
1855 static int x509_crt_check_parent( const mbedtls_x509_crt *child, in x509_crt_check_parent() argument
1862 if( x509_name_cmp( &child->issuer, &parent->subject ) != 0 ) in x509_crt_check_parent()
1874 child->raw.len == parent->raw.len && in x509_crt_check_parent()
1875 memcmp( child->raw.p, parent->raw.p, child->raw.len ) == 0 ) in x509_crt_check_parent()
1895 mbedtls_x509_crt *child, mbedtls_x509_crt *trust_ca, in x509_crt_verify_top() argument
1908 if( mbedtls_x509_time_is_past( &child->valid_to ) ) in x509_crt_verify_top()
1911 if( mbedtls_x509_time_is_future( &child->valid_from ) ) in x509_crt_verify_top()
1914 if( x509_profile_check_md_alg( profile, child->sig_md ) != 0 ) in x509_crt_verify_top()
1917 if( x509_profile_check_pk_alg( profile, child->sig_pk ) != 0 ) in x509_crt_verify_top()
1925 md_info = mbedtls_md_info_from_type( child->sig_md ); in x509_crt_verify_top()
1934 mbedtls_md( md_info, child->tbs.p, child->tbs.len, hash ); 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()
1949 child->issuer_raw.len ) == 0 ) 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()
1972 child->sig_md, hash, mbedtls_md_get_size( md_info ), in x509_crt_verify_top()
1973 child->sig.p, child->sig.len ) != 0 ) in x509_crt_verify_top()
1983 if( x509_profile_check_key( profile, child->sig_pk, &trust_ca->pk ) != 0 ) 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()
1997 child->issuer_raw.len ) != 0 ) ) in x509_crt_verify_top()
2001 *flags |= x509_crt_verifycrl( child, trust_ca, ca_crl, profile ); in x509_crt_verify_top()
2019 if( ( ret = f_vrfy( p_vrfy, child, path_cnt, flags ) ) != 0 ) in x509_crt_verify_top()
2029 mbedtls_x509_crt *child, mbedtls_x509_crt *parent, in x509_crt_verify_child() argument
2043 if( ( path_cnt != 0 ) && x509_name_cmp( &child->issuer, &child->subject ) == 0 ) in x509_crt_verify_child()
2053 if( mbedtls_x509_time_is_past( &child->valid_to ) ) in x509_crt_verify_child()
2056 if( mbedtls_x509_time_is_future( &child->valid_from ) ) in x509_crt_verify_child()
2059 if( x509_profile_check_md_alg( profile, child->sig_md ) != 0 ) in x509_crt_verify_child()
2062 if( x509_profile_check_pk_alg( profile, child->sig_pk ) != 0 ) in x509_crt_verify_child()
2065 md_info = mbedtls_md_info_from_type( child->sig_md ); in x509_crt_verify_child()
2075 mbedtls_md( md_info, child->tbs.p, child->tbs.len, hash ); in x509_crt_verify_child()
2077 if( x509_profile_check_key( profile, child->sig_pk, &parent->pk ) != 0 ) in x509_crt_verify_child()
2080 if( mbedtls_pk_verify_ext( child->sig_pk, child->sig_opts, &parent->pk, in x509_crt_verify_child()
2081 child->sig_md, hash, mbedtls_md_get_size( md_info ), in x509_crt_verify_child()
2082 child->sig.p, child->sig.len ) != 0 ) in x509_crt_verify_child()
2090 *flags |= x509_crt_verifycrl(child, parent, ca_crl, profile ); in x509_crt_verify_child()
2152 if( ( ret = f_vrfy( p_vrfy, child, path_cnt, flags ) ) != 0 ) in x509_crt_verify_child()