Home
last modified time | relevance | path

Searched refs:strprefix (Results 1 – 9 of 9) sorted by relevance

/freebsd/crypto/openssh/regress/unittests/misc/
H A Dtest_misc.c144 s = strprefix("hello world", "hello", 0); in test_strprefix()
150 s = strprefix("hello world", "world", 0); in test_strprefix()
155 s = strprefix("hello", "hello", 0); in test_strprefix()
161 s = strprefix("", "hello", 0); in test_strprefix()
166 s = strprefix("hello", "", 0); in test_strprefix()
172 s = strprefix("Hello world", "hello", 0); in test_strprefix()
177 s = strprefix("Hello world", "hello", 1); in test_strprefix()
183 s = strprefix("HELLO", "hello", 1); in test_strprefix()
/freebsd/crypto/openssh/
H A Dssh-keygen.c1451 if ((p = strprefix(opts[i], "hashalg=", 1)) != NULL) { in do_print_resource_record()
1998 else if ((p = strprefix(opt, "force-command=", 1)) != NULL) { in add_cert_option()
2004 } else if ((p = strprefix(opt, "source-address=", 1)) != NULL) { in add_cert_option()
2012 } else if (strprefix(opt, "extension:", 1) != NULL || in add_cert_option()
2013 (iscrit = (strprefix(opt, "critical:", 1) != NULL))) { in add_cert_option()
2200 if ((cp = strprefix(cp, "SHA256:", 0)) == NULL) in hash_to_blob()
2639 (p = strprefix(opts[i], "hashalg=", 1)) != NULL) { in sig_process_opts()
2642 (p = strprefix(opts[i], "verify-time=", 1)) != NULL) { in sig_process_opts()
2928 if ((p = strprefix(opts[i], "start=", 0)) != NULL) { in do_moduli_gen()
2932 } else if ((p = strprefix(opts[i], "bits=", 0)) != NULL) { in do_moduli_gen()
[all …]
H A Dservconf.c1106 if (strprefix(attrib, "user=", 1) != NULL || in match_cfg_line()
1107 strprefix(attrib, "group=", 1) != NULL || in match_cfg_line()
1108 strprefix(attrib, "host=", 1) != NULL || in match_cfg_line()
1109 strprefix(attrib, "address=", 1) != NULL || in match_cfg_line()
1110 strprefix(attrib, "localaddress=", 1) != NULL || in match_cfg_line()
1111 strprefix(attrib, "localport=", 1) != NULL || in match_cfg_line()
1112 strprefix(attrib, "rdomain=", 1) != NULL || in match_cfg_line()
1113 strprefix(attrib, "version=", 1) != NULL) { in match_cfg_line()
2122 } else if ((q = strprefix(arg, "crash:", 0)) != NULL) { in process_server_config_line_depth()
2124 } else if ((q = strprefix(arg, "authfail:", 0)) != NULL) { in process_server_config_line_depth()
[all …]
H A Dmisc.h59 const char *strprefix(const char *, const char *, int);
H A Dreadconf.c776 if (strprefix(attrib, "host=", 1) != NULL || in match_cfg_line()
777 strprefix(attrib, "originalhost=", 1) != NULL || in match_cfg_line()
778 strprefix(attrib, "user=", 1) != NULL || in match_cfg_line()
779 strprefix(attrib, "localuser=", 1) != NULL || in match_cfg_line()
780 strprefix(attrib, "localnetwork=", 1) != NULL || in match_cfg_line()
781 strprefix(attrib, "version=", 1) != NULL || in match_cfg_line()
782 strprefix(attrib, "tagged=", 1) != NULL || in match_cfg_line()
783 strprefix(attrib, "command=", 1) != NULL || in match_cfg_line()
784 strprefix(attrib, "exec=", 1) != NULL) { in match_cfg_line()
H A Dssh_namespace.h998 #define strprefix Fssh_strprefix macro
H A Dssh-agent.c2314 else if ((ccp = strprefix(optarg, in main()
H A Dmisc.c107 strprefix(const char *s, const char *prefix, int ignorecase) in strprefix() function
H A DChangeLog5307 upstream: Replace strncmp + byte count with strprefix in Penalty
5433 upstream: Use pointer from strprefix in error message,
5445 with strprefix. nits lucas@, ok lucas@ djm@
7056 upstream: Use strprefix helper when processing sshd -C test args