Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 89) 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.c254 char *opt, *tmp, *cp, *host, **permits = *permitsp; in handle_permit() local
283 cp = tmp; in handle_permit()
285 host = hpdelim(&cp); in handle_permit()
296 if (cp == NULL || in handle_permit()
297 (strcmp(cp, "*") != 0 && a2port(cp) <= 0)) { in handle_permit()
322 char **oarray, *opt, *cp, *tmp; in sshauthopt_parse() local
410 if ((cp = strdup(opt)) == NULL) in sshauthopt_parse()
412 cp[tmp - opt] = '\0'; /* truncate at '=' */ in sshauthopt_parse()
413 if (!valid_env_name(cp)) { in sshauthopt_parse()
414 free(cp); in sshauthopt_parse()
[all …]
H A Dauth-rhosts.c86 char *host, *user, *cp; in check_rhosts_file() local
89 for (cp = buf; *cp == ' ' || *cp == '\t'; cp++) in check_rhosts_file()
91 if (*cp == '#' || *cp == '\n' || !*cp) in check_rhosts_file()
98 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.c335 ep = cp + strlen(cp) - 1; in check_principals_line()
348 line_opts = cp; in check_principals_line()
349 cp = ep; in check_principals_line()
391 for (cp = line; *cp == ' ' || *cp == '\t'; cp++) in process_principals()
396 if (!*cp || *cp == '\n') in process_principals()
596 key_options = cp; in check_authkey_line()
601 skip_space(&cp); in check_authkey_line()
715 char *cp, *line = NULL, loc[256]; in check_authkeys_file() local
730 cp = line; in check_authkeys_file()
731 skip_space(&cp); in check_authkeys_file()
[all …]
H A Dauthfile.c210 cp = line; in sshkey_try_load_public()
211 switch (*cp) { in sshkey_try_load_public()
222 for (; *cp && (*cp == ' ' || *cp == '\t'); cp++) in sshkey_try_load_public()
224 if (*cp) { in sshkey_try_load_public()
226 cp[strcspn(cp, "\r\n")] = '\0'; in sshkey_try_load_public()
397 cp = line; in sshkey_in_file()
400 for (; *cp && (*cp == ' ' || *cp == '\t'); cp++) in sshkey_in_file()
404 switch (*cp) { in sshkey_in_file()
483 for (; *cp && (quoted || (*cp != ' ' && *cp != '\t')); cp++) { in sshkey_advance_past_options()
484 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;
4810 if (!cp) {
4814 *cp = 0;
4874 const char *cp; local
4887 if (cp)
4888 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.c221 char *cipher_list, *cp; in ciphers_valid() local
226 if ((cipher_list = cp = strdup(names)) == NULL) in ciphers_valid()
228 for ((p = strsep(&cp, CIPHER_SEP)); p && *p != '\0'; in ciphers_valid()
229 (p = strsep(&cp, CIPHER_SEP))) { in ciphers_valid()
413 const u_char *cp, u_int len) in cipher_get_length() argument
417 cp, len); in cipher_get_length()
420 *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.c164 char *cp; in hostfile_read_key() local
167 for (cp = *cpp; *cp == ' ' || *cp == '\t'; cp++) in hostfile_read_key()
174 for (; *cp == ' ' || *cp == '\t'; cp++) in hostfile_read_key()
178 *cpp = cp; in hostfile_read_key()
199 if (sp <= cp + 1 || sp >= cp + sizeof(marker)) in check_markers()
201 memcpy(marker, cp, sp - cp); in check_markers()
211 cp = sp; in check_markers()
212 for (; *cp == ' ' || *cp == '\t'; cp++) in check_markers()
215 *cpp = cp; in check_markers()
696 for (cp = line; *cp == ' ' || *cp == '\t'; cp++) in hostkeys_foreach()
[all …]
H A Dkex.c157 char *s, *cp, *p; in kex_names_valid() local
161 if ((s = cp = strdup(names)) == NULL) in kex_names_valid()
164 (p = strsep(&cp, ","))) { in kex_names_valid()
193 if ((tmp = cp = strdup(b)) == NULL || in kex_names_cat()
199 for ((p = strsep(&cp, ",")); p && *p != '\0'; (p = strsep(&cp, ","))) { in kex_names_cat()
225 char *cp, *tmp, *patterns; in kex_assemble_names() local
281 if (*cp == '!') { in kex_assemble_names()
1180 char *cp, *remote_version = NULL; in kex_exchange_identification() local
1291 "\"%.256s\"", __func__, cp); in kex_exchange_identification()
1292 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.c247 char *maclist, *cp, *p; in mac_valid() local
251 if ((maclist = cp = strdup(names)) == NULL) in mac_valid()
253 for ((p = strsep(&cp, MAC_SEP)); p && *p != '\0'; in mac_valid()
254 (p = strsep(&cp, MAC_SEP))) { in mac_valid()
H A Dmatch.c274 char *c, *s, *p, *ret, *cp, *sp; in match_list() local
277 c = cp = xstrdup(client); in match_list()
289 for ((p = strsep(&cp, SEP)), i=0; p && *p != '\0'; in match_list()
290 (p = strsep(&cp, SEP)), i++) { in match_list()
295 *next = (cp == NULL) ? in match_list()
296 strlen(c) : (u_int)(cp - c); in match_list()
323 char *cp, *tmp; in filter_list() local
334 while ((cp = strsep(&tmp, ",")) != NULL) { in filter_list()
335 r = match_pattern_list(cp, filter, 0); in filter_list()
339 strlcat(fix_prop, cp, len); in filter_list()
H A Dmisc.c584 if (cp == NULL || *cp == NULL) in hpdelim2()
642 for (; *cp; ++cp) { in colon()
643 if (*cp == '@' && *(cp+1) == '[') in colon()
645 if (*cp == ']' && *(cp+1) == ':' && flag) in colon()
758 if ((cp = hpdelim(&tmp)) == NULL || *cp == '\0') in parse_user_host_port()
914 tmp = cp ? cp + 1 : NULL; in parse_uri()
952 char *cp; in addargs() local
979 char *cp; in replacearg() local
2090 for (cp = name; *cp != '\0'; cp++) { in valid_env_name()
2091 if (!isalnum((u_char)*cp) && *cp != '_') in valid_env_name()
[all …]
H A Dmoduli.c581 char *cp, *lp; in prime_test() local
636 cp = &lp[14]; /* (skip) */ in prime_test()
639 in_type = strtoul(cp, &cp, 10); in prime_test()
642 in_tests = strtoul(cp, &cp, 10); in prime_test()
650 in_tries = strtoul(cp, &cp, 10); in prime_test()
653 in_size = strtoul(cp, &cp, 10); in prime_test()
656 generator_known = strtoul(cp, &cp, 16); in prime_test()
659 cp += strspn(cp, " "); in prime_test()
666 if (BN_hex2bn(&a, cp) == 0) in prime_test()
683 if (BN_hex2bn(&a, cp) == 0) in prime_test()
H A Dmonitor.c1255 char *userstyle, *cp; in monitor_valid_userblob() local
1295 free(cp); in monitor_valid_userblob()
1301 free(cp); in monitor_valid_userblob()
1321 char *cp, *userstyle; in monitor_valid_hostbasedblob() local
1351 free(cp); in monitor_valid_hostbasedblob()
1357 free(cp); in monitor_valid_hostbasedblob()
1365 if (((len = strlen(cp)) > 0) && cp[len - 1] == '.') in monitor_valid_hostbasedblob()
1366 cp[len - 1] = '\0'; in monitor_valid_hostbasedblob()
1367 if (strcmp(cp, chost) != 0) in monitor_valid_hostbasedblob()
1369 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.c323 char *cp; in strdup() local
326 cp = malloc(len); in strdup()
327 if (cp != NULL) in strdup()
328 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 68 milliseconds

1234