Lines Matching refs:host_key
741 check_host_cert(const char *host, const struct sshkey *host_key) in check_host_cert() argument
745 if (sshkey_cert_check_authority(host_key, 1, 0, host, &reason) != 0) { in check_host_cert()
749 if (sshbuf_len(host_key->cert->critical) != 0) { in check_host_cert()
839 struct sshkey *host_key, int readonly, in check_host_key() argument
853 int r, want_cert = sshkey_is_cert(host_key), host_ip_differ = 0; in check_host_key()
904 want_cert = sshkey_is_cert(host_key); in check_host_key()
905 type = sshkey_type(host_key); in check_host_key()
911 host_status = check_key_in_hostkeys(host_hostkeys, host_key, in check_host_key()
920 ip_status = check_key_in_hostkeys(ip_hostkeys, host_key, in check_host_key()
939 hostname : options.host_key_alias, host_key)) in check_host_key()
947 host_key, options.hash_known_hosts)) in check_host_key()
957 fp = sshkey_fingerprint(host_key, in check_host_key()
959 ra = sshkey_fingerprint(host_key, in check_host_key()
973 if (check_host_key(hostname, hostaddr, 0, host_key, in check_host_key()
997 if (show_other_keys(host_hostkeys, host_key)) in check_host_key()
1004 fp = sshkey_fingerprint(host_key, in check_host_key()
1006 ra = sshkey_fingerprint(host_key, in check_host_key()
1047 host, host_key, options.hash_known_hosts) && in check_host_key()
1049 host_key, options.hash_known_hosts); in check_host_key()
1053 hostline, host_key, in check_host_key()
1058 host_key, options.hash_known_hosts); in check_host_key()
1124 warn_changed_key(host_key); in check_host_key()
1260 if ((r = sshkey_from_private(host_key, &raw_key)) != 0) in check_host_key()
1265 host_key = raw_key; in check_host_key()
1280 verify_host_key(char *host, struct sockaddr *hostaddr, struct sshkey *host_key) in verify_host_key() argument
1287 if ((fp = sshkey_fingerprint(host_key, in verify_host_key()
1294 if (sshkey_is_cert(host_key)) { in verify_host_key()
1295 if ((cafp = sshkey_fingerprint(host_key->cert->signature_key, in verify_host_key()
1302 sshkey_format_cert_validity(host_key->cert, in verify_host_key()
1306 sshkey_ssh_name(host_key), fp, in verify_host_key()
1307 (unsigned long long)host_key->cert->serial, in verify_host_key()
1308 host_key->cert->key_id, in verify_host_key()
1309 sshkey_ssh_name(host_key->cert->signature_key), cafp, in verify_host_key()
1311 for (i = 0; i < host_key->cert->nprincipals; i++) { in verify_host_key()
1313 host_key->cert->principals[i]); in verify_host_key()
1316 debug("Server host key: %s %s", sshkey_ssh_name(host_key), fp); in verify_host_key()
1319 if (sshkey_equal(previous_host_key, host_key)) { in verify_host_key()
1321 __func__, sshkey_type(host_key), fp); in verify_host_key()
1328 r = sshkey_check_revoked(host_key, options.revoked_host_keys); in verify_host_key()
1334 sshkey_type(host_key), fp, in verify_host_key()
1340 "revoked keys file %s: %s", sshkey_type(host_key), in verify_host_key()
1352 if ((r = sshkey_from_private(host_key, &plain)) != 0) in verify_host_key()
1375 r = check_host_key(host, hostaddr, options.port, host_key, RDRW, in verify_host_key()
1383 if (r == 0 && host_key != NULL) { in verify_host_key()
1385 r = sshkey_from_private(host_key, &previous_host_key); in verify_host_key()
1487 warn_changed_key(struct sshkey *host_key) in warn_changed_key() argument
1491 fp = sshkey_fingerprint(host_key, options.fingerprint_hash, in warn_changed_key()
1503 sshkey_type(host_key), fp); in warn_changed_key()