Lines Matching defs:hostkeys
259 struct sshbuf *keybuf = NULL, *hostkeys = NULL;
263 if ((hostkeys = sshbuf_new()) == NULL)
266 /* pack hostkeys into a string. Empty key slots get empty strings */
271 hostkeys)) != 0)
274 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0)
281 hostkeys)) != 0)
284 if ((r = sshbuf_put_string(hostkeys, NULL, 0)) != 0)
290 return hostkeys;
512 /* Inform the client of all hostkeys */
522 /* Some clients cannot cope with the hostkeys message, skip those. */
543 (r = sshpkt_put_cstring(ssh, "hostkeys-00@openssh.com")) != 0 ||
555 debug3_f("sent %u hostkeys", nkeys);
557 fatal_f("no hostkeys");
576 parse_hostkeys(struct sshbuf *hostkeys)
585 while (sshbuf_len(hostkeys) != 0) {
587 fatal_f("too many hostkeys");
599 if ((r = sshbuf_froms(hostkeys, &kbuf)) != 0)
610 if ((r = sshbuf_get_string_direct(hostkeys, &cp, &len)) != 0)
619 if ((r = sshbuf_get_string_direct(hostkeys, &cp, &len)) != 0)
634 struct sshbuf *m, *inc, *hostkeys;
652 (r = sshbuf_froms(m, &hostkeys)) != 0 ||
670 parse_hostkeys(hostkeys);
674 sshbuf_free(hostkeys);
1015 fatal("internal error: hostkeys confused (config %u recvd %u)",
1027 fatal("internal error: monitor received no hostkeys");
1213 /* Try to send all our hostkeys to the client */