Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 87) sorted by path

1234

/openssh-portable/
H A Daddrmatch.c316 char addrbuf[64], *mp, *cp; in addr_pton_cidr() local
325 masklen = strtoul(mp, &cp, 10); in addr_pton_cidr()
378 char *list, *cp, *o; in addr_match_list() local
390 neg = *cp == '!'; in addr_match_list()
392 cp++; in addr_match_list()
393 if (*cp == '\0') { in addr_match_list()
438 char *list, *cp, *o; in addr_match_cidr_list() local
450 if (*cp == '\0') { in addr_match_cidr_list()
466 __func__, cp); in addr_match_cidr_list()
471 if (strspn(cp, VALID_CIDR_CHARS) != strlen(cp)) { in addr_match_cidr_list()
[all …]
H A Dauth-options.c252 char *opt, *tmp, *cp, *host, **permits = *permitsp; in handle_permit() local
281 cp = tmp; in handle_permit()
283 host = hpdelim(&cp); in handle_permit()
294 if (cp == NULL || in handle_permit()
295 (strcmp(cp, "*") != 0 && a2port(cp) <= 0)) { in handle_permit()
320 char **oarray, *opt, *cp, *tmp; in sshauthopt_parse() local
406 if ((cp = strdup(opt)) == NULL) in sshauthopt_parse()
408 cp[tmp - opt] = '\0'; /* truncate at '=' */ in sshauthopt_parse()
409 if (!valid_env_name(cp)) { in sshauthopt_parse()
410 free(cp); in sshauthopt_parse()
[all …]
H A Dauth-rhosts.c87 char *host, *user, *cp; in check_rhosts_file() local
90 for (cp = buf; *cp == ' ' || *cp == '\t'; cp++) in check_rhosts_file()
92 if (*cp == '#' || *cp == '\n' || !*cp) in check_rhosts_file()
99 if (strncmp(cp, "NO_PLUS", 7) == 0) in check_rhosts_file()
H A Dauth.c858 char *cp, errmsg[512]; in subprocess() local
921 if ((cp = getenv("LANG")) != NULL) in subprocess()
922 child_set_env(&child_env, &envsize, "LANG", cp); in subprocess()
H A Dauth2-pubkey.c310 ep = cp + strlen(cp) - 1; in check_principals_line()
323 line_opts = cp; in check_principals_line()
324 cp = ep; in check_principals_line()
366 for (cp = line; *cp == ' ' || *cp == '\t'; cp++) in process_principals()
371 if (!*cp || *cp == '\n') in process_principals()
571 key_options = cp; in check_authkey_line()
576 skip_space(&cp); in check_authkey_line()
690 char *cp, *line = NULL, loc[256]; in check_authkeys_file() local
705 cp = line; in check_authkeys_file()
706 skip_space(&cp); in check_authkeys_file()
[all …]
H A Dauthfile.c269 cp = line; in sshkey_try_load_public()
270 switch (*cp) { in sshkey_try_load_public()
281 for (; *cp && (*cp == ' ' || *cp == '\t'); cp++) in sshkey_try_load_public()
283 if (*cp) { in sshkey_try_load_public()
285 cp[strcspn(cp, "\r\n")] = '\0'; in sshkey_try_load_public()
456 cp = line; in sshkey_in_file()
459 for (; *cp && (*cp == ' ' || *cp == '\t'); cp++) in sshkey_in_file()
463 switch (*cp) { in sshkey_in_file()
542 for (; *cp && (quoted || (*cp != ' ' && *cp != '\t')); cp++) { in sshkey_advance_past_options()
543 if (*cp == '\\' && cp[1] == '"') in sshkey_advance_past_options()
[all …]
H A Dbuildpkg.sh.in204 cp ${OPENSSHD} $FAKE_ROOT${TEST_DIR}${SMF_METHOD_DIR}/${SYSVINIT_NAME}
215 cp ${OPENSSHD} $FAKE_ROOT${TEST_DIR}/etc/init.d/${SYSVINIT_NAME}
313 cp -p \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_config.default \\
316 cp -p \${PKG_INSTALL_ROOT}${sysconfdir}/sshd_config.default \\
H A Dchannels.c865 char *cp, *ret; in channel_open_message() local
901 free(cp); in channel_open_message()
905 free(cp); in channel_open_message()
2751 type = cp[1];
2753 cp += 2;
4805 if (!cp) {
4809 *cp = 0;
4869 const char *cp; local
4882 if (cp)
4883 cp = strchr(cp, '.');
[all …]
H A Dcipher-chachapoly.c108 u_int *plenp, u_int seqnr, const u_char *cp, u_int len) in chachapoly_get_length() argument
116 chacha_encrypt_bytes(&ctx->header_ctx, cp, buf, 4); in chachapoly_get_length()
H A Dcipher-chachapoly.h38 u_int *plenp, u_int seqnr, const u_char *cp, u_int len)
H A Dcipher.c210 char *cipher_list, *cp; in ciphers_valid() local
215 if ((cipher_list = cp = strdup(names)) == NULL) in ciphers_valid()
217 for ((p = strsep(&cp, CIPHER_SEP)); p && *p != '\0'; in ciphers_valid()
218 (p = strsep(&cp, CIPHER_SEP))) { in ciphers_valid()
402 const u_char *cp, u_int len) in cipher_get_length() argument
406 cp, len); in cipher_get_length()
409 *plenp = PEEK_U32(cp); in cipher_get_length()
H A Ddh.c51 char *cp, *arg; in parse_prime() local
57 cp = line; in parse_prime()
58 if ((arg = strdelim(&cp)) == NULL) in parse_prime()
62 arg = strdelim(&cp); in parse_prime()
67 if (cp == NULL || *arg == '\0') in parse_prime()
69 arg = strsep(&cp, " "); /* type */ in parse_prime()
70 if (cp == NULL || *arg == '\0') in parse_prime()
79 if (cp == NULL || *arg == '\0') in parse_prime()
89 if (cp == NULL || *arg == '\0') in parse_prime()
105 gen = strsep(&cp, " "); /* gen */ in parse_prime()
[all …]
H A Dhostfile.c165 char *cp; in hostfile_read_key() local
168 for (cp = *cpp; *cp == ' ' || *cp == '\t'; cp++) in hostfile_read_key()
175 for (; *cp == ' ' || *cp == '\t'; cp++) in hostfile_read_key()
179 *cpp = cp; in hostfile_read_key()
200 if (sp <= cp + 1 || sp >= cp + sizeof(marker)) in check_markers()
202 memcpy(marker, cp, sp - cp); in check_markers()
212 cp = sp; in check_markers()
213 for (; *cp == ' ' || *cp == '\t'; cp++) in check_markers()
216 *cpp = cp; in check_markers()
696 for (cp = line; *cp == ' ' || *cp == '\t'; cp++) in hostkeys_foreach()
[all …]
H A Dkex.c155 char *s, *cp, *p; in kex_names_valid() local
159 if ((s = cp = strdup(names)) == NULL) in kex_names_valid()
162 (p = strsep(&cp, ","))) { in kex_names_valid()
191 if ((tmp = cp = strdup(b)) == NULL || in kex_names_cat()
197 for ((p = strsep(&cp, ",")); p && *p != '\0'; (p = strsep(&cp, ","))) { in kex_names_cat()
223 char *cp, *tmp, *patterns; in kex_assemble_names() local
279 if (*cp == '!') { in kex_assemble_names()
1175 char *cp, *remote_version = NULL; in kex_exchange_identification() local
1286 "\"%.256s\"", __func__, cp); in kex_exchange_identification()
1287 free(cp); in kex_exchange_identification()
[all …]
H A Dkexc25519.c95 u_char *cp = NULL; in kex_c25519_keypair() local
100 if ((r = sshbuf_reserve(buf, CURVE25519_SIZE, &cp)) != 0) in kex_c25519_keypair()
102 kexc25519_keygen(kex->c25519_client_key, cp); in kex_c25519_keypair()
104 dump_digest("client public key c25519:", cp, CURVE25519_SIZE); in kex_c25519_keypair()
H A Dkexsntrup4591761x25519.c44 u_char *cp = NULL; in kex_kem_sntrup4591761x25519_keypair() local
51 if ((r = sshbuf_reserve(buf, need, &cp)) != 0) in kex_kem_sntrup4591761x25519_keypair()
53 crypto_kem_sntrup4591761_keypair(cp, kex->sntrup4591761_client_key); in kex_kem_sntrup4591761x25519_keypair()
55 dump_digest("client public key sntrup4591761:", cp, in kex_kem_sntrup4591761x25519_keypair()
58 cp += crypto_kem_sntrup4591761_PUBLICKEYBYTES; in kex_kem_sntrup4591761x25519_keypair()
59 kexc25519_keygen(kex->c25519_client_key, cp); in kex_kem_sntrup4591761x25519_keypair()
61 dump_digest("client public key c25519:", cp, CURVE25519_SIZE); in kex_kem_sntrup4591761x25519_keypair()
H A Dmac.c248 char *maclist, *cp, *p; in mac_valid() local
252 if ((maclist = cp = strdup(names)) == NULL) in mac_valid()
254 for ((p = strsep(&cp, MAC_SEP)); p && *p != '\0'; in mac_valid()
255 (p = strsep(&cp, MAC_SEP))) { in mac_valid()
H A Dmatch.c273 char *c, *s, *p, *ret, *cp, *sp; in match_list() local
276 c = cp = xstrdup(client); in match_list()
288 for ((p = strsep(&cp, SEP)), i=0; p && *p != '\0'; in match_list()
289 (p = strsep(&cp, SEP)), i++) { in match_list()
294 *next = (cp == NULL) ? in match_list()
295 strlen(c) : (u_int)(cp - c); in match_list()
322 char *cp, *tmp; in filter_list() local
333 while ((cp = strsep(&tmp, ",")) != NULL) { in filter_list()
334 r = match_pattern_list(cp, filter, 0); in filter_list()
338 strlcat(fix_prop, cp, len); in filter_list()
H A Dmisc.c572 if (cp == NULL || *cp == NULL) in hpdelim2()
630 for (; *cp; ++cp) { in colon()
631 if (*cp == '@' && *(cp+1) == '[') in colon()
633 if (*cp == ']' && *(cp+1) == ':' && flag) in colon()
746 if ((cp = hpdelim(&tmp)) == NULL || *cp == '\0') in parse_user_host_port()
902 tmp = cp ? cp + 1 : NULL; in parse_uri()
940 char *cp; in addargs() local
967 char *cp; in replacearg() local
2050 for (cp = name; *cp != '\0'; cp++) { in valid_env_name()
2051 if (!isalnum((u_char)*cp) && *cp != '_') in valid_env_name()
[all …]
H A Dmoduli.c580 char *cp, *lp; in prime_test() local
637 cp = &lp[14]; /* (skip) */ in prime_test()
640 in_type = strtoul(cp, &cp, 10); in prime_test()
643 in_tests = strtoul(cp, &cp, 10); in prime_test()
651 in_tries = strtoul(cp, &cp, 10); in prime_test()
654 in_size = strtoul(cp, &cp, 10); in prime_test()
657 generator_known = strtoul(cp, &cp, 16); in prime_test()
660 cp += strspn(cp, " "); in prime_test()
667 if (BN_hex2bn(&a, cp) == 0) in prime_test()
684 if (BN_hex2bn(&a, cp) == 0) in prime_test()
H A Dmonitor.c1254 char *userstyle, *cp; in monitor_valid_userblob() local
1296 free(cp); in monitor_valid_userblob()
1302 free(cp); in monitor_valid_userblob()
1322 char *cp, *userstyle; in monitor_valid_hostbasedblob() local
1353 free(cp); in monitor_valid_hostbasedblob()
1359 free(cp); in monitor_valid_hostbasedblob()
1367 if (((len = strlen(cp)) > 0) && cp[len - 1] == '.') in monitor_valid_hostbasedblob()
1368 cp[len - 1] = '\0'; in monitor_valid_hostbasedblob()
1369 if (strcmp(cp, chost) != 0) in monitor_valid_hostbasedblob()
1371 free(cp); in monitor_valid_hostbasedblob()
[all …]
H A Dmux.c248 char name[1024], *cp; in env_permitted() local
250 if ((cp = strchr(env, '=')) == NULL || cp == env) in env_permitted()
252 ret = snprintf(name, sizeof(name), "%.*s", (int)(cp - env), env); in env_permitted()
340 char *cmd, *cp; in mux_master_process_new_session() local
372 if ((r = sshbuf_get_cstring(m, &cp, NULL)) != 0) in mux_master_process_new_session()
374 if (!env_permitted(cp)) { in mux_master_process_new_session()
375 free(cp); in mux_master_process_new_session()
380 cctx->env[env_len++] = cp; in mux_master_process_new_session()
/openssh-portable/contrib/aix/
H A Dbuildbff.sh119 cp $srcdir/LICENCE $objdir/$PKGDIR/
120 cp $srcdir/README* $objdir/$PKGDIR/
197 cp $sysconfdir/\$cfgfile.default $sysconfdir/\$cfgfile
/openssh-portable/openbsd-compat/
H A Dbsd-misc.c321 char *cp; in strdup() local
324 cp = malloc(len); in strdup()
325 if (cp != NULL) in strdup()
326 return(memcpy(cp, str, len)); in strdup()
H A Dfake-rfc2553.c170 char *cp; in getaddrinfo() local
172 port = strtol(servname, &cp, 10); in getaddrinfo()
173 if (port > 0 && port <= 65535 && *cp == '\0') in getaddrinfo()

Completed in 114 milliseconds

1234