Home | History | Annotate | Download | only in crypto

Lines Matching defs:match

1179 static int tls_match_altsubject(X509 *cert, const char *match)
1185 pos = match;
1198 "match '%s'", pos);
1223 static int domain_suffix_match(const u8 *val, size_t len, const char *match,
1236 match_len = os_strlen(match);
1240 if (os_strncasecmp((const char *) val + len - match_len, match,
1242 return 0; /* no match */
1245 return 1; /* exact match */
1248 return 1; /* full label match completes suffix match */
1250 wpa_printf(MSG_DEBUG, "TLS: Reject due to incomplete label match");
1256 static int tls_match_suffix(X509 *cert, const char *match, int full)
1269 wpa_printf(MSG_DEBUG, "TLS: Match domain against %s%s",
1270 full ? "": "suffix ", match);
1283 gen->d.dNSName->length, match, full) ==
1286 full ? "Match" : "Suffix match");
1313 if (domain_suffix_match(cn->data, cn->length, match, full) == 1)
1316 full ? "Match" : "Suffix match");
1505 char *match, *altmatch, *suffix_match, *domain_match;
1530 match = conn->subject_match;
1599 if (depth == 0 && match && os_strstr(buf, match) == NULL) {
1601 "match with '%s'", buf, match);
1608 wpa_printf(MSG_WARNING, "TLS: altSubjectName match "
1616 wpa_printf(MSG_WARNING, "TLS: Domain suffix match '%s' not found",
1624 wpa_printf(MSG_WARNING, "TLS: Domain match '%s' not found",
1734 "certificate match");