/openbsd/usr.bin/ssh/ |
H A D | hostfile.c | 225 struct hostkeys *hostkeys; member 232 struct hostkeys *hostkeys = ctx->hostkeys; in record_hostkey() local 252 hostkeys->entries[hostkeys->num_entries].line = l->linenum; in record_hostkey() 253 hostkeys->entries[hostkeys->num_entries].key = l->key; in record_hostkey() 255 hostkeys->entries[hostkeys->num_entries].marker = l->marker; in record_hostkey() 256 hostkeys->entries[hostkeys->num_entries].note = l->note; in record_hostkey() 264 load_hostkeys_file(struct hostkeys *hostkeys, const char *host, in load_hostkeys_file() argument 272 ctx.hostkeys = hostkeys; in load_hostkeys_file() 299 free_hostkeys(struct hostkeys *hostkeys) in free_hostkeys() argument 310 freezero(hostkeys, sizeof(*hostkeys)); in free_hostkeys() [all …]
|
H A D | hostfile.h | 33 struct hostkeys { struct 38 struct hostkeys *init_hostkeys(void); argument 39 void load_hostkeys(struct hostkeys *, const char *, 41 void load_hostkeys_file(struct hostkeys *, const char *, 43 void free_hostkeys(struct hostkeys *); 45 HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *, 47 int lookup_key_in_hostkeys_by_type(struct hostkeys *, int, int, 49 int lookup_marker_in_hostkeys(struct hostkeys *, int);
|
H A D | sshd-session.c | 259 struct sshbuf *keybuf = NULL, *hostkeys = NULL; in pack_hostkeys() local 263 if ((hostkeys = sshbuf_new()) == NULL) in pack_hostkeys() 271 hostkeys)) != 0) in pack_hostkeys() 281 hostkeys)) != 0) in pack_hostkeys() 290 return hostkeys; in pack_hostkeys() 576 parse_hostkeys(struct sshbuf *hostkeys) in parse_hostkeys() argument 585 while (sshbuf_len(hostkeys) != 0) { in parse_hostkeys() 634 struct sshbuf *m, *inc, *hostkeys; in recv_rexec_state() local 652 (r = sshbuf_froms(m, &hostkeys)) != 0 || in recv_rexec_state() 670 parse_hostkeys(hostkeys); in recv_rexec_state() [all …]
|
H A D | sshd-auth.c | 368 parse_hostkeys(struct sshbuf *hostkeys) in parse_hostkeys() argument 376 while (sshbuf_len(hostkeys) != 0) { in parse_hostkeys() 385 if ((r = sshbuf_get_string_direct(hostkeys, &cp, &len)) != 0) in parse_hostkeys() 394 if ((r = sshbuf_get_string_direct(hostkeys, &cp, &len)) != 0) in parse_hostkeys() 410 struct sshbuf *hostkeys; in recv_privsep_state() local 415 &hostkeys, NULL, NULL, NULL, NULL); in recv_privsep_state() 416 parse_hostkeys(hostkeys); in recv_privsep_state() 418 sshbuf_free(hostkeys); in recv_privsep_state()
|
H A D | sshconnect.h | 52 struct hostkeys; 96 void load_hostkeys_command(struct hostkeys *, const char *,
|
H A D | auth.c | 375 struct hostkeys *hostkeys; in check_key_in_hostfiles() local 378 hostkeys = init_hostkeys(); in check_key_in_hostfiles() 379 load_hostkeys(hostkeys, host, sysfile, 0); in check_key_in_hostfiles() 393 load_hostkeys(hostkeys, host, user_hostfile, 0); in check_key_in_hostfiles() 398 host_status = check_key_in_hostkeys(hostkeys, key, &found); in check_key_in_hostfiles() 408 free_hostkeys(hostkeys); in check_key_in_hostfiles()
|
H A D | sshd.c | 608 struct sshbuf *keybuf = NULL, *hostkeys = NULL; in pack_hostkeys() local 613 (hostkeys = sshbuf_new()) == NULL) in pack_hostkeys() 624 if ((r = sshbuf_put_stringb(hostkeys, keybuf)) != 0) in pack_hostkeys() 629 hostkeys)) != 0) in pack_hostkeys() 632 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0) in pack_hostkeys() 639 hostkeys)) != 0) in pack_hostkeys() 642 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0) in pack_hostkeys() 648 return hostkeys; in pack_hostkeys() 673 hostkeys = pack_hostkeys(); in send_rexec_state() 692 (r = sshbuf_put_stringb(m, hostkeys)) != 0 || in send_rexec_state() [all …]
|
H A D | ssh-add.c | 688 struct hostkeys *hostkeys; in parse_dest_constraint_hop() local 715 hostkeys = init_hostkeys(); in parse_dest_constraint_hop() 719 load_hostkeys(hostkeys, host, path, 0); in parse_dest_constraint_hop() 724 for (i = 0; i < hostkeys->num_entries; i++) { in parse_dest_constraint_hop() 725 hke = hostkeys->entries + i; in parse_dest_constraint_hop() 745 free_hostkeys(hostkeys); in parse_dest_constraint_hop()
|
H A D | sshconnect.c | 72 static int show_other_keys(struct hostkeys *, struct sshkey *); 834 load_hostkeys_command(struct hostkeys *hostkeys, const char *command_template, in load_hostkeys_command() argument 893 load_hostkeys_file(hostkeys, hostfile_hostname, tag, f, 1); in load_hostkeys_command() 937 struct hostkeys *host_hostkeys, *ip_hostkeys; in check_host_key() 1587 show_other_keys(struct hostkeys *hostkeys, struct sshkey *key) in show_other_keys() argument 1606 if (!lookup_key_in_hostkeys_by_type(hostkeys, type[i], in show_other_keys()
|
H A D | sshconnect2.c | 121 struct hostkeys *hostkeys = NULL; in order_hostkeyalgs() local 127 hostkeys = init_hostkeys(); in order_hostkeyalgs() 129 load_hostkeys(hostkeys, hostname, options.user_hostfiles[i], 0); in order_hostkeyalgs() 131 load_hostkeys(hostkeys, hostname, in order_hostkeyalgs() 135 load_hostkeys_command(hostkeys, options.known_hosts_command, in order_hostkeyalgs() 146 if (lookup_key_in_hostkeys_by_type(hostkeys, in order_hostkeyalgs() 180 lookup_marker_in_hostkeys(hostkeys, MRK_CA)) { in order_hostkeyalgs() 185 if (lookup_key_in_hostkeys_by_type(hostkeys, in order_hostkeyalgs() 207 free_hostkeys(hostkeys); in order_hostkeyalgs()
|
H A D | PROTOCOL | 367 2.5. connection: hostkey update and rotation "hostkeys-00@openssh.com" 368 and "hostkeys-prove-00@openssh.com" 375 string "hostkeys-00@openssh.com" 377 string[] hostkeys 386 it should send a "hostkeys-prove@openssh.com" message to request the 390 string "hostkeys-prove-00@openssh.com" 392 string[] hostkeys 397 string "hostkeys-prove-00@openssh.com" 402 the hostkeys in the request:
|
H A D | monitor.c | 516 struct sshbuf *inc = NULL, *hostkeys = NULL; in mm_answer_state() local 541 hostkeys = pack_hostkeys(); in mm_answer_state() 566 (r = sshbuf_put_stringb(m, hostkeys)) != 0 || in mm_answer_state()
|
/openbsd/regress/usr.bin/ssh/ |
H A D | ssh-com-client.sh | 47 mkdir -p ${OBJ}/${USER}/hostkeys 48 HK=${OBJ}/${USER}/hostkeys/key_${PORT}_127.0.0.1
|
/openbsd/regress/usr.bin/ssh/unittests/ |
H A D | Makefile | 3 SUBDIR= test_helper sshbuf sshkey bitmap kex hostkeys utf8 match conversion
|