Lines Matching refs:host_key
710 check_host_cert(const char *host, const Key *host_key) in check_host_cert() argument
714 if (key_cert_check_authority(host_key, 1, 0, host, &reason) != 0) { in check_host_cert()
718 if (buffer_len(host_key->cert->critical) != 0) { in check_host_cert()
808 Key *host_key, int readonly, in check_host_key() argument
822 int r, want_cert = key_is_cert(host_key), host_ip_differ = 0; in check_host_key()
873 want_cert = key_is_cert(host_key); in check_host_key()
874 type = key_type(host_key); in check_host_key()
880 host_status = check_key_in_hostkeys(host_hostkeys, host_key, in check_host_key()
889 ip_status = check_key_in_hostkeys(ip_hostkeys, host_key, in check_host_key()
906 if (want_cert && !check_host_cert(hostname, host_key)) in check_host_key()
914 host_key, options.hash_known_hosts)) in check_host_key()
924 fp = sshkey_fingerprint(host_key, in check_host_key()
926 ra = sshkey_fingerprint(host_key, in check_host_key()
940 if (check_host_key(hostname, hostaddr, 0, host_key, in check_host_key()
962 if (show_other_keys(host_hostkeys, host_key)) in check_host_key()
969 fp = sshkey_fingerprint(host_key, in check_host_key()
971 ra = sshkey_fingerprint(host_key, in check_host_key()
1012 host, host_key, options.hash_known_hosts) && in check_host_key()
1014 host_key, options.hash_known_hosts); in check_host_key()
1018 hostline, host_key, in check_host_key()
1023 host_key, options.hash_known_hosts); in check_host_key()
1088 warn_changed_key(host_key); in check_host_key()
1220 raw_key = key_from_private(host_key); in check_host_key()
1223 host_key = raw_key; in check_host_key()
1239 verify_host_key(char *host, struct sockaddr *hostaddr, Key *host_key) in verify_host_key() argument
1246 if ((fp = sshkey_fingerprint(host_key, in verify_host_key()
1253 if (sshkey_is_cert(host_key)) { in verify_host_key()
1254 if ((cafp = sshkey_fingerprint(host_key->cert->signature_key, in verify_host_key()
1261 sshkey_format_cert_validity(host_key->cert, in verify_host_key()
1265 sshkey_ssh_name(host_key), fp, in verify_host_key()
1266 (unsigned long long)host_key->cert->serial, in verify_host_key()
1267 host_key->cert->key_id, in verify_host_key()
1268 sshkey_ssh_name(host_key->cert->signature_key), cafp, in verify_host_key()
1270 for (i = 0; i < host_key->cert->nprincipals; i++) { in verify_host_key()
1272 host_key->cert->principals[i]); in verify_host_key()
1276 sshkey_ssh_name(host_key) : sshkey_type(host_key), fp); in verify_host_key()
1279 if (sshkey_equal(previous_host_key, host_key)) { in verify_host_key()
1281 __func__, sshkey_type(host_key), fp); in verify_host_key()
1288 r = sshkey_check_revoked(host_key, options.revoked_host_keys); in verify_host_key()
1294 sshkey_type(host_key), fp, in verify_host_key()
1300 "revoked keys file %s: %s", sshkey_type(host_key), in verify_host_key()
1312 if ((r = sshkey_from_private(host_key, &plain)) != 0) in verify_host_key()
1335 r = check_host_key(host, hostaddr, options.port, host_key, RDRW, in verify_host_key()
1343 if (r == 0 && host_key != NULL) { in verify_host_key()
1345 previous_host_key = key_from_private(host_key); in verify_host_key()
1456 warn_changed_key(Key *host_key) in warn_changed_key() argument
1460 fp = sshkey_fingerprint(host_key, options.fingerprint_hash, in warn_changed_key()
1472 key_type(host_key), fp); in warn_changed_key()