HomeSort by: relevance | last modified time | path
    Searched refs:hostkeys (Results 1 - 11 of 11) sorted by relevancy

  /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...]
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...]
sshconnect.h 53 struct hostkeys;
101 void load_hostkeys_command(struct hostkeys *, const char *,
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-auth.c 380 parse_hostkeys(struct sshbuf *hostkeys)
388 while (sshbuf_len(hostkeys) != 0) {
390 fatal_f("too many hostkeys");
397 if ((r = sshbuf_get_string_direct(hostkeys, &cp, &len)) != 0)
406 if ((r = sshbuf_get_string_direct(hostkeys, &cp, &len)) != 0)
422 struct sshbuf *hostkeys; local
427 &hostkeys, NULL, NULL, NULL, NULL);
428 parse_hostkeys(hostkeys);
430 sshbuf_free(hostkeys);
662 fatal("internal error: hostkeys confused (config %u recvd %u)"
    [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);
ssh-add.c 712 struct hostkeys *hostkeys; local
739 hostkeys = init_hostkeys();
743 load_hostkeys(hostkeys, host, path, 0);
748 for (i = 0; i < hostkeys->num_entries; i++) {
749 hke = hostkeys->entries + i;
769 free_hostkeys(hostkeys);
sshd.c 659 struct sshbuf *m = NULL, *keybuf = NULL, *hostkeys = NULL; local
666 (hostkeys = sshbuf_new()) == NULL)
669 /* pack hostkeys into a string. Empty key slots get empty strings */
677 if ((r = sshbuf_put_stringb(hostkeys, keybuf)) != 0)
682 hostkeys)) != 0)
685 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0)
692 hostkeys)) != 0)
695 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0)
702 (r = sshbuf_put_stringb(m, hostkeys)) != 0)
709 sshbuf_free(hostkeys);
    [all...]
sshconnect.c 82 static int show_other_keys(struct hostkeys *, struct sshkey *);
817 debug_f("hostkeys file %s does not exist", file);
828 * Used to display also-known-as information for previously-unseen hostkeys.
908 load_hostkeys_command(struct hostkeys *hostkeys, const char *command_template,
967 load_hostkeys_file(hostkeys, hostfile_hostname, tag, f, 1);
1011 struct hostkeys *host_hostkeys, *ip_hostkeys;
1674 show_other_keys(struct hostkeys *hostkeys, struct sshkey *key)
1689 if (!lookup_key_in_hostkeys_by_type(hostkeys, type[i]
    [all...]
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...]
monitor.c 586 struct sshbuf *m = NULL, *inc = NULL, *hostkeys = NULL; local
609 hostkeys = pack_hostkeys();
634 (r = sshbuf_put_stringb(m, hostkeys)) != 0 ||
649 sshbuf_free(hostkeys);
710 const char proof_req[] = "hostkeys-prove-00@openssh.com";
741 if (session_id2_len == 0) /* hostkeys is never first */
1468 * Ensure this is actually one of our hostkeys; unfortunately

Completed in 35 milliseconds