| /src/crypto/external/bsd/openssh/dist/ |
| hostfile.h | 34 struct hostkeys { struct 39 struct hostkeys *init_hostkeys(void); 40 void load_hostkeys(struct hostkeys *, const char *, 42 void load_hostkeys_file(struct hostkeys *, const char *, 44 void free_hostkeys(struct hostkeys *); 46 HostStatus check_key_in_hostkeys(struct hostkeys *, struct sshkey *, 48 int lookup_key_in_hostkeys_by_type(struct hostkeys *, int, int, 50 int lookup_marker_in_hostkeys(struct hostkeys *, int); 69 * Iterate through a hostkeys file, optionally parsing keys and matching 114 /* Iterate over a hostkeys file * [all...] |
| auth.c | 508 struct hostkeys *hostkeys; local 511 hostkeys = init_hostkeys(); 512 load_hostkeys(hostkeys, host, sysfile, 0); 526 load_hostkeys(hostkeys, host, user_hostfile, 0); 531 host_status = check_key_in_hostkeys(hostkeys, key, &found); 541 free_hostkeys(hostkeys);
|
| sshd-auth.c | 398 parse_hostkeys(struct sshbuf *hostkeys) 406 while (sshbuf_len(hostkeys) != 0) { 408 fatal_f("too many hostkeys"); 415 if ((r = sshbuf_get_string_direct(hostkeys, &cp, &len)) != 0) 424 if ((r = sshbuf_get_string_direct(hostkeys, &cp, &len)) != 0) 440 struct sshbuf *hostkeys; local 445 &hostkeys, NULL, NULL, NULL, NULL); 446 parse_hostkeys(hostkeys); 448 sshbuf_free(hostkeys); 676 fatal("internal error: hostkeys confused (config %u recvd %u)" [all...] |
| hostfile.c | 217 struct hostkeys * 220 struct hostkeys *ret = xcalloc(1, sizeof(*ret)); 229 struct hostkeys *hostkeys; member in struct:load_callback_ctx 236 struct hostkeys *hostkeys = ctx->hostkeys; local 241 debug("%s:%ld: parse error in hostkeys file", 250 if ((tmp = recallocarray(hostkeys->entries, hostkeys->num_entries [all...] |
| ssh-add.c | 699 struct hostkeys *hostkeys; local 726 hostkeys = init_hostkeys(); 730 load_hostkeys(hostkeys, host, path, 0); 735 for (i = 0; i < hostkeys->num_entries; i++) { 736 hke = hostkeys->entries + i; 756 free_hostkeys(hostkeys);
|
| sshd-session.c | 302 struct sshbuf *keybuf = NULL, *hostkeys = NULL; local 306 if ((hostkeys = sshbuf_new()) == NULL) 309 /* pack hostkeys into a string. Empty key slots get empty strings */ 314 hostkeys)) != 0) 317 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0) 324 hostkeys)) != 0) 327 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0) 333 return hostkeys; 537 /* Inform the client of all hostkeys */ 547 /* Some clients cannot cope with the hostkeys message, skip those. * 659 struct sshbuf *m, *inc, *hostkeys; local [all...] |
| sshd.c | 663 struct sshbuf *m = NULL, *keybuf = NULL, *hostkeys = NULL; local 670 (hostkeys = sshbuf_new()) == NULL) 673 /* pack hostkeys into a string. Empty key slots get empty strings */ 681 if ((r = sshbuf_put_stringb(hostkeys, keybuf)) != 0) 686 hostkeys)) != 0) 689 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0) 696 hostkeys)) != 0) 699 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0) 706 (r = sshbuf_put_stringb(m, hostkeys)) != 0) 713 sshbuf_free(hostkeys); [all...] |
| monitor.c | 592 struct sshbuf *m = NULL, *inc = NULL, *hostkeys = NULL; local 615 hostkeys = pack_hostkeys(); 640 (r = sshbuf_put_stringb(m, hostkeys)) != 0 || 655 sshbuf_free(hostkeys); 729 const char proof_req[] = "hostkeys-prove-00@openssh.com"; 764 if (session_id2_len == 0) /* hostkeys is never first */ 1496 * Ensure this is actually one of our hostkeys; unfortunately
|
| sshconnect2.c | 140 struct hostkeys *hostkeys = NULL; local 144 /* Find all hostkeys for this hostname */ 146 hostkeys = init_hostkeys(); 148 load_hostkeys(hostkeys, hostname, options.user_hostfiles[i], 0); 150 load_hostkeys(hostkeys, hostname, 154 load_hostkeys_command(hostkeys, options.known_hosts_command, 165 if (lookup_key_in_hostkeys_by_type(hostkeys, 199 lookup_marker_in_hostkeys(hostkeys, MRK_CA)) { 204 if (lookup_key_in_hostkeys_by_type(hostkeys, [all...] |