Home
last modified time | relevance | path

Searched refs:match_pattern_list (Results 1 – 17 of 17) sorted by relevance

/external/openssh/regress/unittests/match/
Dtests.c51 ASSERT_INT_EQ(match_pattern_list("", "", 0), 0); /* no patterns */ in tests()
52 ASSERT_INT_EQ(match_pattern_list("", "*", 0), 1); in tests()
53 ASSERT_INT_EQ(match_pattern_list("", "!*", 0), -1); in tests()
54 ASSERT_INT_EQ(match_pattern_list("", "!a,*", 0), 1); in tests()
55 ASSERT_INT_EQ(match_pattern_list("", "*,!a", 0), 1); in tests()
56 ASSERT_INT_EQ(match_pattern_list("", "a,!*", 0), -1); in tests()
57 ASSERT_INT_EQ(match_pattern_list("", "!*,a", 0), -1); in tests()
58 ASSERT_INT_EQ(match_pattern_list("a", "", 0), 0); in tests()
59 ASSERT_INT_EQ(match_pattern_list("a", "*", 0), 1); in tests()
60 ASSERT_INT_EQ(match_pattern_list("a", "!*", 0), -1); in tests()
[all …]
/external/openssh/
Dmatch.c121 match_pattern_list(const char *string, const char *pattern, int dolower) in match_pattern_list() function
186 r = match_pattern_list(hostcopy, pattern, 1); in match_hostname()
317 if (match_pattern_list(cp, filter, 0) != 1) { in match_filter_list()
Dmatch.h18 int match_pattern_list(const char *, const char *, int);
Dgroupaccess.c107 switch (match_pattern_list(groups_byname[i], group_pattern, 0)) { in ga_match_pattern_list()
Dcompat.c210 if (match_pattern_list(version, check[i].pat, 0) == 1) { in compat_datafellows()
Dauth2-hostbased.c111 if (match_pattern_list(sshkey_ssh_name(key), in userauth_hostbased()
Dclientloop.c2407 (match_pattern_list("rsa-sha2-256", hostkeyalgs, 0) == 1 || in key_accepted_by_hostkeyalgs()
2408 match_pattern_list("rsa-sha2-512", hostkeyalgs, 0) == 1)) in key_accepted_by_hostkeyalgs()
2410 return match_pattern_list(ktype, hostkeyalgs, 0) == 1; in key_accepted_by_hostkeyalgs()
Dmonitor.c1156 match_pattern_list(sshkey_ssh_name(key), in mm_answer_keyallowed()
1168 match_pattern_list(sshkey_ssh_name(key), in mm_answer_keyallowed()
Dreadconf.c622 r = match_pattern_list(ruser, arg, 0) == 1; in match_cfg_line()
627 r = match_pattern_list(pw->pw_name, arg, 0) == 1; in match_cfg_line()
730 match_pattern_list(cp, ignored_unknown, 1) == 1) in parse_token()
Dssh.c352 if (match_pattern_list(*namep, rule->source_list, 1) != 1 || in check_follow_cname()
353 match_pattern_list(cname, rule->target_list, 1) != 1) in check_follow_cname()
Dsshconnect2.c1421 match_pattern_list(sshkey_ssh_name(id->key), in pubkey_prepare()
1761 if (match_pattern_list( in userauth_hostbased()
Dauth2-pubkey.c134 if (match_pattern_list(sshkey_ssh_name(key), in userauth_pubkey()
Dssh-agent.c785 if (match_pattern_list(canonical_provider, pkcs11_whitelist, 0) != 1) { in process_add_smartcard_key()
Dsshd.c700 if (match_pattern_list(sshkey_ssh_name(key),
Dservconf.c816 if (match_pattern_list(ci->user, arg, 0) != 1) in match_cfg_line()
Dsshkey.c255 if (match_pattern_list(kt->name, in sshkey_names_valid2()
DChangeLog8550 Remove pattern length argument from match_pattern_list(), we
8639 Remove pattern length argument from match_pattern_list(), we