Lines Matching refs:name
1267 #define CERT_TYPE(type,name) \ argument
1269 PRINT_ITEM( name );
1294 #define KEY_USAGE(code,name) \ argument
1296 PRINT_ITEM( name );
1751 static int x509_check_wildcard( const char *cn, mbedtls_x509_buf *name ) in x509_check_wildcard() argument
1756 if( name->len < 3 || name->p[0] != '*' || name->p[1] != '.' ) in x509_check_wildcard()
1771 if( cn_len - cn_idx == name->len - 1 && in x509_check_wildcard()
1772 x509_memcasecmp( name->p + 1, cn + cn_idx, name->len - 1 ) == 0 ) in x509_check_wildcard()
2190 mbedtls_x509_name *name; in mbedtls_x509_crt_verify_with_profile() local
2201 name = &crt->subject; in mbedtls_x509_crt_verify_with_profile()
2229 while( name != NULL ) in mbedtls_x509_crt_verify_with_profile()
2231 if( MBEDTLS_OID_CMP( MBEDTLS_OID_AT_CN, &name->oid ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
2233 if( name->val.len == cn_len && in mbedtls_x509_crt_verify_with_profile()
2234 x509_memcasecmp( name->val.p, cn, cn_len ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
2237 if( name->val.len > 2 && in mbedtls_x509_crt_verify_with_profile()
2238 memcmp( name->val.p, "*.", 2 ) == 0 && in mbedtls_x509_crt_verify_with_profile()
2239 x509_check_wildcard( cn, &name->val ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
2243 name = name->next; in mbedtls_x509_crt_verify_with_profile()
2246 if( name == NULL ) in mbedtls_x509_crt_verify_with_profile()