|
Lines 837-843
check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port,
Link Here
|
| 837 |
host, type, want_cert ? "certificate" : "key"); |
837 |
host, type, want_cert ? "certificate" : "key"); |
| 838 |
debug("Found %s in %s:%lu", want_cert ? "CA key" : "key", |
838 |
debug("Found %s in %s:%lu", want_cert ? "CA key" : "key", |
| 839 |
host_found->file, host_found->line); |
839 |
host_found->file, host_found->line); |
| 840 |
if (want_cert && !check_host_cert(hostname, host_key)) |
840 |
if (want_cert && |
|
|
841 |
!check_host_cert(options.host_key_alias == NULL ? |
| 842 |
hostname : options.host_key_alias, host_key)) |
| 841 |
goto fail; |
843 |
goto fail; |
| 842 |
if (options.check_host_ip && ip_status == HOST_NEW) { |
844 |
if (options.check_host_ip && ip_status == HOST_NEW) { |
| 843 |
if (readonly || want_cert) |
845 |
if (readonly || want_cert) |