Lines Matching refs:host_key

844     const struct sshkey *host_key, const char *hostfile_hostname)  in load_hostkeys_command()  argument
855 if (host_key != NULL) { in load_hostkeys_command()
856 if ((key_fp = sshkey_fingerprint(host_key, in load_hostkeys_command()
859 if ((r = sshkey_to_base64(host_key, &keytext)) != 0) in load_hostkeys_command()
884 "t", host_key == NULL ? "NONE" : sshkey_ssh_name(host_key), in load_hostkeys_command()
929 struct sshkey *host_key, int readonly, int clobber_port, in check_host_key() argument
943 int r, want_cert = sshkey_is_cert(host_key), host_ip_differ = 0; in check_host_key()
986 "HOSTNAME", cinfo, host_key, host); in check_host_key()
998 "ADDRESS", cinfo, host_key, ip); in check_host_key()
1004 want_cert = sshkey_is_cert(host_key); in check_host_key()
1005 type = sshkey_type(host_key); in check_host_key()
1011 host_status = check_key_in_hostkeys(host_hostkeys, host_key, in check_host_key()
1028 ip_status = check_key_in_hostkeys(ip_hostkeys, host_key, in check_host_key()
1046 if (sshkey_cert_check_host(host_key, in check_host_key()
1085 host_key, options.hash_known_hosts)) in check_host_key()
1095 fp = sshkey_fingerprint(host_key, in check_host_key()
1097 ra = sshkey_fingerprint(host_key, in check_host_key()
1112 host_key, ROQUIET, 1, in check_host_key()
1140 if (show_other_keys(host_hostkeys, host_key)) { in check_host_key()
1146 fp = sshkey_fingerprint(host_key, in check_host_key()
1148 ra = sshkey_fingerprint(host_key, in check_host_key()
1163 if ((msg2 = other_hostkeys_message(host, ip, host_key, in check_host_key()
1191 host, host_key, options.hash_known_hosts) && in check_host_key()
1193 host_key, options.hash_known_hosts); in check_host_key()
1197 hostline, host_key, in check_host_key()
1202 host_key, options.hash_known_hosts); in check_host_key()
1268 warn_changed_key(host_key); in check_host_key()
1402 if ((r = sshkey_from_private(host_key, &raw_key)) != 0) in check_host_key()
1406 host_key = raw_key; in check_host_key()
1421 verify_host_key(char *host, struct sockaddr *hostaddr, struct sshkey *host_key, in verify_host_key() argument
1429 if ((fp = sshkey_fingerprint(host_key, in verify_host_key()
1436 if (sshkey_is_cert(host_key)) { in verify_host_key()
1437 if ((cafp = sshkey_fingerprint(host_key->cert->signature_key, in verify_host_key()
1443 sshkey_format_cert_validity(host_key->cert, in verify_host_key()
1447 sshkey_ssh_name(host_key), fp, in verify_host_key()
1448 (unsigned long long)host_key->cert->serial, in verify_host_key()
1449 host_key->cert->key_id, in verify_host_key()
1450 sshkey_ssh_name(host_key->cert->signature_key), cafp, in verify_host_key()
1452 for (i = 0; i < host_key->cert->nprincipals; i++) { in verify_host_key()
1454 host_key->cert->principals[i]); in verify_host_key()
1457 debug("Server host key: %s %s", sshkey_ssh_name(host_key), fp); in verify_host_key()
1460 if (sshkey_equal(previous_host_key, host_key)) { in verify_host_key()
1462 sshkey_type(host_key), fp); in verify_host_key()
1469 r = sshkey_check_revoked(host_key, options.revoked_host_keys); in verify_host_key()
1475 sshkey_type(host_key), fp, in verify_host_key()
1481 "revoked keys file %s", sshkey_type(host_key), in verify_host_key()
1493 if ((r = sshkey_from_private(host_key, &plain)) != 0) in verify_host_key()
1516 r = check_host_key(host, cinfo, hostaddr, options.port, host_key, in verify_host_key()
1525 if (r == 0 && host_key != NULL) { in verify_host_key()
1527 r = sshkey_from_private(host_key, &previous_host_key); in verify_host_key()
1617 warn_changed_key(struct sshkey *host_key) in warn_changed_key() argument
1621 fp = sshkey_fingerprint(host_key, options.fingerprint_hash, in warn_changed_key()
1633 sshkey_type(host_key), fp); in warn_changed_key()