Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 37) 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.c700 free(tmp); in process_get()
793 free(tmp); in process_put()
855 char *tmp; in do_ls_dir() local
866 free(tmp); in do_ls_dir()
892 free(tmp); in do_ls_dir()
1808 char *tmp; in complete_display() local
1987 tmp = make_absolute(tmp, remote_path); in complete_match()
1995 if (tmp[tmplen] == '*' || tmp[tmplen] == '?') { in complete_match()
1996 if (tmp[tmplen] != '*' || tmp[tmplen + 1] != '\0') in complete_match()
2005 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()
516 const char *tmp; in sshauthopt_merge() local
529 if (tmp == NULL) in sshauthopt_merge()
534 if (tmp == NULL) in sshauthopt_merge()
712 u_int tmp; in deserialise_array() local
722 n = tmp; in deserialise_array()
[all …]
H A Dmisc.c668 char *sdup, *tmp; in parse_user_host_path() local
685 *tmp++ = '\0'; in parse_user_host_path()
686 if (*tmp == '\0') in parse_user_host_path()
687 tmp = "."; in parse_user_host_path()
692 if (tmp != NULL) { in parse_user_host_path()
693 *tmp++ = '\0'; in parse_user_host_path()
755 tmp = cp + 1; in parse_user_host_port()
762 if (tmp != NULL && *tmp != '\0') { in parse_user_host_port()
897 tmp = cp + 1; in parse_uri()
907 if (tmp != NULL && *tmp != '\0') { in parse_uri()
[all …]
H A Dssh-ecdsa-sk.c69 char *tmp = NULL; in ssh_ecdsa_sk_verify() local
118 fprintf(stderr, "%s: sig_r: %s\n", __func__, (tmp = BN_bn2hex(sig_r))); in ssh_ecdsa_sk_verify()
119 free(tmp); in ssh_ecdsa_sk_verify()
120 fprintf(stderr, "%s: sig_s: %s\n", __func__, (tmp = BN_bn2hex(sig_s))); in ssh_ecdsa_sk_verify()
121 free(tmp); in ssh_ecdsa_sk_verify()
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.c1318 if (strlcpy(tmp, identity_file, sizeof(tmp)) >= sizeof(tmp) || in do_known_hosts()
1319 strlcat(tmp, ".XXXXXXXXXX", sizeof(tmp)) >= sizeof(tmp) || in do_known_hosts()
1328 unlink(tmp); in do_known_hosts()
1340 unlink(tmp); in do_known_hosts()
1352 unlink(tmp); in do_known_hosts()
1780 free(tmp); in do_ca_sign()
1846 free(tmp); in do_ca_sign()
2183 char *tmp; in hash_to_blob() local
2207 free(tmp); in hash_to_blob()
2374 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.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 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 Dkex.c122 char *ret = NULL, *tmp; in kex_alg_list() local
134 ret = tmp; in kex_alg_list()
183 char *ret = NULL, *tmp = NULL, *cp, *p, *m; in kex_names_cat() local
193 if ((tmp = cp = strdup(b)) == NULL || in kex_names_cat()
195 free(tmp); in kex_names_cat()
206 free(tmp); in kex_names_cat()
211 free(tmp); in kex_names_cat()
225 char *cp, *tmp, *patterns; in kex_assemble_names() local
247 list = tmp; in kex_assemble_names()
264 list = tmp; in kex_assemble_names()
[all …]
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 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.c444 char *tmp, *username = NULL, *command = NULL, **av = NULL; in match_principals_command() local
509 tmp = percent_expand(av[i], in match_principals_command()
522 if (tmp == NULL) in match_principals_command()
525 av[i] = tmp; in match_principals_command()
885 char uidstr[32], *tmp, *command = NULL, **av = NULL; in user_key_command_allowed2() local
938 tmp = percent_expand(av[i], in user_key_command_allowed2()
946 if (tmp == NULL) in user_key_command_allowed2()
949 av[i] = tmp; in user_key_command_allowed2()
H A Dsshkey.c271 ret = tmp; in sshkey_alg_list()
918 struct sshbuf *tmp; in sshkey_puts_opts() local
926 sshbuf_free(tmp); in sshkey_puts_opts()
2071 tmp = *kswap; in sshkey_shield_private()
2073 *k = tmp; in sshkey_shield_private()
2090 explicit_bzero(&tmp, sizeof(tmp)); in sshkey_shield_private()
2179 tmp = *kswap; in sshkey_unshield_private()
2181 *k = tmp; in sshkey_unshield_private()
2189 explicit_bzero(&tmp, sizeof(tmp)); in sshkey_unshield_private()
3847 if (BN_cmp(x, tmp) >= 0 || BN_cmp(y, tmp) >= 0) in sshkey_ec_validate_public()
[all …]
H A Dcipher.c123 char *tmp, *ret = NULL; in cipher_alg_list() local
135 if ((tmp = realloc(ret, rlen + nlen + 2)) == NULL) { in cipher_alg_list()
139 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 …]
/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.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()

Completed in 55 milliseconds

12