Lines Matching refs:cn
276 static int x509_check_wildcard(const char *cn, const mbedtls_x509_buf *name) in x509_check_wildcard() argument
279 size_t cn_idx = 0, cn_len = strlen(cn); in x509_check_wildcard()
287 if (cn[i] == '.') { in x509_check_wildcard()
298 x509_memcasecmp(name->p + 1, cn + cn_idx, name->len - 1) == 0) { in x509_check_wildcard()
2877 size_t mbedtls_x509_crt_parse_cn_inet_pton(const char *cn, void *dst) in mbedtls_x509_crt_parse_cn_inet_pton() argument
2879 return strchr(cn, ':') == NULL in mbedtls_x509_crt_parse_cn_inet_pton()
2880 ? x509_inet_pton_ipv4(cn, dst) == 0 ? 4 : 0 in mbedtls_x509_crt_parse_cn_inet_pton()
2881 : x509_inet_pton_ipv6(cn, dst) == 0 ? 16 : 0; in mbedtls_x509_crt_parse_cn_inet_pton()
2888 const char *cn, size_t cn_len) in x509_crt_check_cn() argument
2892 x509_memcasecmp(cn, name->p, cn_len) == 0) { in x509_crt_check_cn()
2897 if (x509_check_wildcard(cn, name) == 0) { in x509_crt_check_cn()
2905 const char *cn, size_t cn_len) in x509_crt_check_san_ip() argument
2908 cn_len = mbedtls_x509_crt_parse_cn_inet_pton(cn, ip); in x509_crt_check_san_ip()
2926 const char *cn, size_t cn_len) in x509_crt_check_san_uri() argument
2932 cur->buf.len == cn_len && memcmp(cur->buf.p, cn, cn_len) == 0) { in x509_crt_check_san_uri()
2944 const char *cn, size_t cn_len) in x509_crt_check_san() argument
2952 if (x509_crt_check_cn(&cur->buf, cn, cn_len) == 0) { in x509_crt_check_san()
2968 if (x509_crt_check_san_ip(san, cn, cn_len) == 0) { in x509_crt_check_san()
2973 if (x509_crt_check_san_uri(san, cn, cn_len) == 0) { in x509_crt_check_san()
2985 const char *cn, in x509_crt_verify_name() argument
2989 size_t cn_len = strlen(cn); in x509_crt_verify_name()
2992 if (x509_crt_check_san(&crt->subject_alt_names, cn, cn_len) == 0) { in x509_crt_verify_name()
2998 x509_crt_check_cn(&name->val, cn, cn_len) == 0) { in x509_crt_verify_name()
3061 const char *cn, uint32_t *flags, in x509_crt_verify_restartable_ca_cb() argument
3084 if (cn != NULL) { in x509_crt_verify_restartable_ca_cb()
3085 x509_crt_verify_name(crt, cn, &ee_flags); in x509_crt_verify_restartable_ca_cb()
3154 const char *cn, uint32_t *flags, in mbedtls_x509_crt_verify() argument
3161 cn, flags, in mbedtls_x509_crt_verify()
3172 const char *cn, uint32_t *flags, in mbedtls_x509_crt_verify_with_profile() argument
3178 profile, cn, flags, in mbedtls_x509_crt_verify_with_profile()
3191 const char *cn, uint32_t *flags, in mbedtls_x509_crt_verify_with_ca_cb() argument
3197 profile, cn, flags, in mbedtls_x509_crt_verify_with_ca_cb()
3206 const char *cn, uint32_t *flags, in mbedtls_x509_crt_verify_restartable() argument
3213 profile, cn, flags, in mbedtls_x509_crt_verify_restartable()