|
Lines 902-908
check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
Link Here
|
| 902 |
debug("Found %s in %s:%lu", want_cert ? "CA key" : "key", |
902 |
debug("Found %s in %s:%lu", want_cert ? "CA key" : "key", |
| 903 |
host_found->file, host_found->line); |
903 |
host_found->file, host_found->line); |
| 904 |
if (want_cert && !check_host_cert(hostname, host_key)) |
904 |
if (want_cert && !check_host_cert(hostname, host_key)) |
| 905 |
goto fail; |
905 |
if (options.host_key_alias == NULL || !check_host_cert(options.host_key_alias, host_key)) |
|
|
906 |
goto fail; |
| 906 |
if (options.check_host_ip && ip_status == HOST_NEW) { |
907 |
if (options.check_host_ip && ip_status == HOST_NEW) { |
| 907 |
if (readonly || want_cert) |
908 |
if (readonly || want_cert) |
| 908 |
logit("%s host key for IP address " |
909 |
logit("%s host key for IP address " |
| 909 |
- |
|
|