Lines Matching refs:cn
1751 static int x509_check_wildcard( const char *cn, mbedtls_x509_buf *name ) in x509_check_wildcard() argument
1754 size_t cn_idx = 0, cn_len = strlen( cn ); in x509_check_wildcard()
1761 if( cn[i] == '.' ) in x509_check_wildcard()
1772 x509_memcasecmp( name->p + 1, cn + cn_idx, name->len - 1 ) == 0 ) in x509_check_wildcard()
2166 const char *cn, uint32_t *flags, in mbedtls_x509_crt_verify() argument
2171 &mbedtls_x509_crt_profile_default, cn, flags, f_vrfy, p_vrfy ) ); in mbedtls_x509_crt_verify()
2182 const char *cn, uint32_t *flags, in mbedtls_x509_crt_verify_with_profile() argument
2199 if( cn != NULL ) in mbedtls_x509_crt_verify_with_profile()
2202 cn_len = strlen( cn ); in mbedtls_x509_crt_verify_with_profile()
2211 x509_memcasecmp( cn, cur->buf.p, cn_len ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
2216 x509_check_wildcard( cn, &cur->buf ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
2234 x509_memcasecmp( name->val.p, cn, cn_len ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
2239 x509_check_wildcard( cn, &name->val ) == 0 ) in mbedtls_x509_crt_verify_with_profile()