Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 36) 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.c698 free(tmp); in process_get()
791 free(tmp); in process_put()
853 char *tmp; in do_ls_dir() local
864 free(tmp); in do_ls_dir()
890 free(tmp); in do_ls_dir()
1806 char *tmp; in complete_display() local
1985 tmp = make_absolute(tmp, remote_path); in complete_match()
1993 if (tmp[tmplen] == '*' || tmp[tmplen] == '?') { in complete_match()
1994 if (tmp[tmplen] != '*' || tmp[tmplen + 1] != '\0') in complete_match()
2003 free(tmp); in complete_match()
[all …]
H A Dauth-options.c341 opt = tmp; in handle_permit()
348 cp = tmp; in handle_permit()
352 free(tmp); in handle_permit()
363 free(tmp); in handle_permit()
369 free(tmp); in handle_permit()
579 const char *tmp; in sshauthopt_merge() local
592 if (tmp == NULL) in sshauthopt_merge()
597 if (tmp == NULL) in sshauthopt_merge()
773 u_int tmp; in deserialise_array() local
783 n = tmp; in deserialise_array()
[all …]
H A Dmisc.c656 char *sdup, *tmp; in parse_user_host_path() local
673 *tmp++ = '\0'; in parse_user_host_path()
674 if (*tmp == '\0') in parse_user_host_path()
675 tmp = "."; in parse_user_host_path()
680 if (tmp != NULL) { in parse_user_host_path()
681 *tmp++ = '\0'; in parse_user_host_path()
743 tmp = cp + 1; in parse_user_host_port()
750 if (tmp != NULL && *tmp != '\0') { in parse_user_host_port()
885 tmp = cp + 1; in parse_uri()
895 if (tmp != NULL && *tmp != '\0') { in parse_uri()
[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 Dssh-keygen.c1267 if (strlcpy(tmp, identity_file, sizeof(tmp)) >= sizeof(tmp) || in do_known_hosts()
1268 strlcat(tmp, ".XXXXXXXXXX", sizeof(tmp)) >= sizeof(tmp) || in do_known_hosts()
1277 unlink(tmp); in do_known_hosts()
1289 unlink(tmp); in do_known_hosts()
1301 unlink(tmp); in do_known_hosts()
1726 free(tmp); in do_ca_sign()
1792 free(tmp); in do_ca_sign()
2124 char *tmp; in hash_to_blob() local
2148 free(tmp); in hash_to_blob()
2315 char *tmp; in do_gen_krl() local
[all …]
H A Ddh.c228 BIGNUM *tmp; in dh_pub_is_valid() local
242 if ((tmp = BN_new()) == NULL) { in dh_pub_is_valid()
246 if (!BN_sub(tmp, dh_p, BN_value_one()) || in dh_pub_is_valid()
247 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */ in dh_pub_is_valid()
248 BN_clear_free(tmp); in dh_pub_is_valid()
252 BN_clear_free(tmp); in dh_pub_is_valid()
H A Daddrmatch.c314 struct xaddr tmp; in addr_pton_cidr() local
330 if (addr_pton(addrbuf, &tmp) == -1) in addr_pton_cidr()
334 masklen = addr_unicast_masklen(tmp.af); in addr_pton_cidr()
335 if (masklen_valid(tmp.af, masklen) == -1) in addr_pton_cidr()
337 if (addr_host_is_all0s(&tmp, masklen) != 0) in addr_pton_cidr()
341 memcpy(n, &tmp, sizeof(*n)); in addr_pton_cidr()
H A Dkexgexc.c149 struct sshbuf *tmp = NULL, *server_host_key_blob = NULL; in input_kex_dh_gex_reply() local
161 if ((tmp = sshbuf_fromb(server_host_key_blob)) == NULL) { in input_kex_dh_gex_reply()
165 if ((r = sshkey_fromb(tmp, &server_host_key)) != 0 || in input_kex_dh_gex_reply()
214 sshbuf_free(tmp); in input_kex_dh_gex_reply()
H A Dmoduli.c452 char tmp[PATH_MAX]; in write_checkpoint() local
455 r = snprintf(tmp, sizeof(tmp), "%s.XXXXXXXXXX", cpfile); in write_checkpoint()
460 if ((r = mkstemp(tmp)) == -1) { in write_checkpoint()
461 logit("mkstemp(%s): %s", tmp, strerror(errno)); in write_checkpoint()
466 unlink(tmp); in write_checkpoint()
471 && rename(tmp, cpfile) == 0) in write_checkpoint()
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.c322 char *cp, *tmp; in filter_list() local
331 tmp = orig_prop; in filter_list()
333 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
155 if ((tmp = sshbuf_fromb(server_host_key_blob)) == NULL) { in input_kex_gen_reply()
159 if ((r = sshkey_fromb(tmp, &server_host_key)) != 0) in input_kex_gen_reply()
227 sshbuf_free(tmp); in input_kex_gen_reply()
H A Dkex.c120 char *ret = NULL, *tmp; in kex_alg_list() local
128 if ((tmp = realloc(ret, rlen + nlen + 2)) == NULL) { in kex_alg_list()
132 ret = tmp; in kex_alg_list()
181 char *ret = NULL, *tmp = NULL, *cp, *p, *m; in kex_names_cat() local
191 if ((tmp = cp = strdup(b)) == NULL || in kex_names_cat()
193 free(tmp); in kex_names_cat()
204 free(tmp); in kex_names_cat()
209 free(tmp); in kex_names_cat()
222 char *cp, *tmp, *patterns; in kex_assemble_names() local
241 list = tmp; in kex_assemble_names()
[all …]
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.c419 char *tmp, *username = NULL, *command = NULL, **av = NULL; in match_principals_command() local
484 tmp = percent_expand(av[i], in match_principals_command()
497 if (tmp == NULL) in match_principals_command()
500 av[i] = tmp; in match_principals_command()
892 char uidstr[32], *tmp, *command = NULL, **av = NULL; in user_key_command_allowed2() local
945 tmp = percent_expand(av[i], in user_key_command_allowed2()
953 if (tmp == NULL) in user_key_command_allowed2()
956 av[i] = tmp; in user_key_command_allowed2()
H A Dsshkey.c231 char *tmp, *ret = NULL; in sshkey_alg_list() local
249 ret = tmp; in sshkey_alg_list()
836 struct sshbuf *tmp; in sshkey_puts_opts() local
844 sshbuf_free(tmp); in sshkey_puts_opts()
1968 tmp = *kswap; in sshkey_shield_private()
1970 *k = tmp; in sshkey_shield_private()
1987 explicit_bzero(&tmp, sizeof(tmp)); in sshkey_shield_private()
2076 tmp = *kswap; in sshkey_unshield_private()
2078 *k = tmp; in sshkey_unshield_private()
2086 explicit_bzero(&tmp, sizeof(tmp)); in sshkey_unshield_private()
[all …]
H A Dcipher.c120 char *tmp, *ret = NULL; in cipher_alg_list() local
132 if ((tmp = realloc(ret, rlen + nlen + 2)) == NULL) { in cipher_alg_list()
136 ret = tmp; in cipher_alg_list()
H A Dsession.c298 char *tmp, *cp, *host; in set_fwdpermit_from_authopts() local
305 tmp = cp = xstrdup(auth_opts->permitopen[i]); in set_fwdpermit_from_authopts()
315 free(tmp); in set_fwdpermit_from_authopts()
321 tmp = cp = xstrdup(auth_opts->permitlisten[i]); in set_fwdpermit_from_authopts()
331 free(tmp); in set_fwdpermit_from_authopts()
1361 char uidstr[32], *chroot_path, *tmp; in do_setusercontext() local
1398 free(tmp); in do_setusercontext()
1740 Session *s, *tmp; in session_new() local
1747 tmp = xrecallocarray(sessions, sessions_nalloc, in session_new()
1749 if (tmp == NULL) { in session_new()
[all …]
H A Dauth2.c733 struct sshkey **tmp, *dup; in auth2_record_key() local
748 (tmp = recallocarray(authctxt->prev_keys, authctxt->nprev_keys, in auth2_record_key()
751 authctxt->prev_keys = tmp; in auth2_record_key()
/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/unittests/test_helper/
H A Dtest_helper.c435 char tmp[64]; in assert_mem_filled() local
450 snprintf(tmp, sizeof(tmp), "(%s)[%zu]", a1, where); in assert_mem_filled()
451 fprintf(stderr, "%20s = 0x%02x (expected 0x%02x)\n", tmp, in assert_mem_filled()

Completed in 80 milliseconds

12