Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 47) sorted by relevance

12

/openssh-portable/openbsd-compat/
H A Dsys-tree.h416 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \
426 elm = tmp; \
432 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \
606 tmp = RB_LEFT(tmp, field); \
608 tmp = RB_RIGHT(tmp, field); \
634 tmp = RB_LEFT(tmp, field); \
636 tmp = RB_RIGHT(tmp, field); \
654 tmp = RB_LEFT(tmp, field); \
657 tmp = RB_RIGHT(tmp, field); \
716 tmp = RB_LEFT(tmp, field); \
[all …]
H A Dinet_ntop.c89 char tmp[sizeof "255.255.255.255"]; in inet_ntop4() local
92 l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]); in inet_ntop4()
97 strlcpy(dst, tmp, size); in inet_ntop4()
117 char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"]; in inet_ntop6() local
158 tp = tmp; in inet_ntop6()
159 ep = tmp + sizeof(tmp); in inet_ntop6()
203 if ((size_t)(tp - tmp) > size) { in inet_ntop6()
207 strlcpy(dst, tmp, size); in inet_ntop6()
H A Dchacha_private.h94 u8 tmp[64]; in chacha_encrypt_bytes() local
118 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes()
119 m = tmp; in chacha_encrypt_bytes()
121 c = tmp; in chacha_encrypt_bytes()
/openssh-portable/
H A Dsftp.c649 free(tmp); in process_get()
742 free(tmp); in process_put()
804 char *tmp; in do_ls_dir() local
815 free(tmp); in do_ls_dir()
841 free(tmp); in do_ls_dir()
1760 char *tmp; in complete_display() local
1939 tmp = make_absolute(tmp, remote_path); in complete_match()
1947 if (tmp[tmplen] == '*' || tmp[tmplen] == '?') { in complete_match()
1948 if (tmp[tmplen] != '*' || tmp[tmplen + 1] != '\0') in complete_match()
1957 free(tmp); in complete_match()
[all …]
H A Dauth-options.c276 opt = tmp; in handle_permit()
283 cp = tmp; in handle_permit()
287 free(tmp); in handle_permit()
298 free(tmp); in handle_permit()
304 free(tmp); in handle_permit()
518 const char *tmp; in sshauthopt_merge() local
531 if (tmp == NULL) in sshauthopt_merge()
536 if (tmp == NULL) in sshauthopt_merge()
718 u_int tmp; in deserialise_array() local
728 n = tmp; in deserialise_array()
[all …]
H A Dsshbuf-misc.c133 struct sshbuf *tmp; in sshbuf_dtob64_string() local
136 if ((tmp = sshbuf_new()) == NULL) in sshbuf_dtob64_string()
138 if (sshbuf_dtob64(buf, tmp, wrap) != 0) { in sshbuf_dtob64_string()
139 sshbuf_free(tmp); in sshbuf_dtob64_string()
142 ret = sshbuf_dup_string(tmp); in sshbuf_dtob64_string()
143 sshbuf_free(tmp); in sshbuf_dtob64_string()
H A Dmisc.c759 char *sdup, *tmp; in parse_user_host_path() local
776 *tmp++ = '\0'; in parse_user_host_path()
777 if (*tmp == '\0') in parse_user_host_path()
778 tmp = "."; in parse_user_host_path()
783 if (tmp != NULL) { in parse_user_host_path()
784 *tmp++ = '\0'; in parse_user_host_path()
846 tmp = cp + 1; in parse_user_host_port()
853 if (tmp != NULL && *tmp != '\0') { in parse_user_host_port()
988 tmp = cp + 1; in parse_uri()
998 if (tmp != NULL && *tmp != '\0') { in parse_uri()
[all …]
H A Ddh.c241 BIGNUM *tmp; in dh_pub_is_valid() local
255 if ((tmp = BN_new()) == NULL) { in dh_pub_is_valid()
259 if (!BN_sub(tmp, dh_p, BN_value_one()) || in dh_pub_is_valid()
260 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */ in dh_pub_is_valid()
261 BN_clear_free(tmp); in dh_pub_is_valid()
265 BN_clear_free(tmp); in dh_pub_is_valid()
H A Daddr.c376 struct xaddr tmp; in addr_pton_cidr() local
392 if (addr_pton(addrbuf, &tmp) == -1) in addr_pton_cidr()
396 masklen = addr_unicast_masklen(tmp.af); in addr_pton_cidr()
397 if (masklen_valid(tmp.af, masklen) == -1) in addr_pton_cidr()
399 if (addr_host_is_all0s(&tmp, masklen) != 0) in addr_pton_cidr()
403 memcpy(n, &tmp, sizeof(*n)); in addr_pton_cidr()
H A Dssh-keygen.c1323 if (strlcpy(tmp, identity_file, sizeof(tmp)) >= sizeof(tmp) || in do_known_hosts()
1324 strlcat(tmp, ".XXXXXXXXXX", sizeof(tmp)) >= sizeof(tmp) || in do_known_hosts()
1333 unlink(tmp); in do_known_hosts()
1346 unlink(tmp); in do_known_hosts()
1358 unlink(tmp); in do_known_hosts()
1790 free(tmp); in do_ca_sign()
1866 free(tmp); in do_ca_sign()
2191 char *tmp; in hash_to_blob() local
2215 free(tmp); in hash_to_blob()
2381 char *tmp; in do_gen_krl() local
[all …]
H A Dssh-ecdsa-sk.c158 char *tmp = NULL; in ssh_ecdsa_sk_verify() local
221 fprintf(stderr, "%s: sig_r: %s\n", __func__, (tmp = BN_bn2hex(sig_r))); in ssh_ecdsa_sk_verify()
222 free(tmp); in ssh_ecdsa_sk_verify()
223 fprintf(stderr, "%s: sig_s: %s\n", __func__, (tmp = BN_bn2hex(sig_s))); in ssh_ecdsa_sk_verify()
224 free(tmp); in ssh_ecdsa_sk_verify()
H A Dkexgexc.c151 struct sshbuf *tmp = NULL, *server_host_key_blob = NULL; in input_kex_dh_gex_reply() local
165 if ((tmp = sshbuf_fromb(server_host_key_blob)) == NULL) { in input_kex_dh_gex_reply()
169 if ((r = sshkey_fromb(tmp, &server_host_key)) != 0 || in input_kex_dh_gex_reply()
218 sshbuf_free(tmp); in input_kex_dh_gex_reply()
H A Dmoduli.c454 char tmp[PATH_MAX]; in write_checkpoint() local
457 r = snprintf(tmp, sizeof(tmp), "%s.XXXXXXXXXX", cpfile); in write_checkpoint()
462 if ((r = mkstemp(tmp)) == -1) { in write_checkpoint()
463 logit("mkstemp(%s): %s", tmp, strerror(errno)); in write_checkpoint()
468 unlink(tmp); in write_checkpoint()
473 && rename(tmp, cpfile) == 0) in write_checkpoint()
H A Dkex.c124 char *ret = NULL, *tmp; in kex_alg_list() local
136 ret = tmp; in kex_alg_list()
185 char *ret = NULL, *tmp = NULL, *cp, *p, *m; in kex_names_cat() local
195 if ((tmp = cp = strdup(b)) == NULL || in kex_names_cat()
197 free(tmp); in kex_names_cat()
208 free(tmp); in kex_names_cat()
213 free(tmp); in kex_names_cat()
227 char *cp, *tmp, *patterns; in kex_assemble_names() local
249 list = tmp; in kex_assemble_names()
266 list = tmp; in kex_assemble_names()
[all …]
H A Dbitmap.c84 BITMAP_WTYPE *tmp; in reserve() local
91 if ((tmp = recallocarray(b->d, b->len, in reserve()
94 b->d = tmp; in reserve()
H A Dmatch.c323 char *cp, *tmp; in filter_list() local
332 tmp = orig_prop; in filter_list()
334 while ((cp = strsep(&tmp, ",")) != NULL) { in filter_list()
H A Dkexgen.c145 struct sshbuf *tmp = NULL, *server_host_key_blob = NULL; in input_kex_gen_reply() local
158 if ((tmp = sshbuf_fromb(server_host_key_blob)) == NULL) { in input_kex_gen_reply()
162 if ((r = sshkey_fromb(tmp, &server_host_key)) != 0) in input_kex_gen_reply()
230 sshbuf_free(tmp); in input_kex_gen_reply()
H A Dmac.c86 char *ret = NULL, *tmp; in mac_alg_list() local
94 if ((tmp = realloc(ret, rlen + nlen + 2)) == NULL) { in mac_alg_list()
98 ret = tmp; in mac_alg_list()
H A Dchacha.c95 u8 tmp[64]; in chacha_encrypt_bytes() local
119 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes()
120 m = tmp; in chacha_encrypt_bytes()
122 c = tmp; in chacha_encrypt_bytes()
H A Dauth2-pubkey.c446 char *tmp, *username = NULL, *command = NULL, **av = NULL; in match_principals_command() local
511 tmp = percent_expand(av[i], in match_principals_command()
524 if (tmp == NULL) in match_principals_command()
527 av[i] = tmp; in match_principals_command()
889 char uidstr[32], *tmp, *command = NULL, **av = NULL; in user_key_command_allowed2() local
942 tmp = percent_expand(av[i], in user_key_command_allowed2()
950 if (tmp == NULL) in user_key_command_allowed2()
953 av[i] = tmp; in user_key_command_allowed2()
H A Dconfig.guess97 tmp=
103 test "$tmp" && return 0
106 …{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp
107 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
108 …{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure…
110 dummy=$tmp/dummy
H A Dlog.c166 char **tmp; in log_verbose_add() local
169 if ((tmp = recallocarray(log_verbose, nlog_verbose, nlog_verbose + 1, in log_verbose_add()
171 log_verbose = tmp; in log_verbose_add()
/openssh-portable/regress/unittests/sshbuf/
H A Dtest_sshbuf_misc.c30 char tmp[512], msg[] = "imploring ping silence ping over", *p; in sshbuf_misc_tests() local
43 sz = fread(tmp, 1, sizeof(tmp), out); in sshbuf_misc_tests()
47 tmp[sz] = '\0'; in sshbuf_misc_tests()
48 ASSERT_PTR_NE(strstr(tmp, "12 34 56 78"), NULL); in sshbuf_misc_tests()
/openssh-portable/regress/misc/fuzz-harness/
H A Dagent_fuzz_helper.c24 char *tmp, *cp; in pubkey_or_die() local
28 tmp = cp = xstrdup(s); in pubkey_or_die()
35 free(tmp); in pubkey_or_die()
/openssh-portable/regress/unittests/test_helper/
H A Dtest_helper.c447 char tmp[64]; in assert_mem_filled() local
462 snprintf(tmp, sizeof(tmp), "(%s)[%zu]", a1, where); in assert_mem_filled()
463 fprintf(stderr, "%20s = 0x%02x (expected 0x%02x)\n", tmp, in assert_mem_filled()

12