version 1.328, 2020/10/04 09:45:01 |
version 1.329, 2020/10/07 02:22:23 |
|
|
static int |
static int |
verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh) |
verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh) |
{ |
{ |
int cert_downgraded = 0; |
if (verify_host_key(xxx_host, xxx_hostaddr, hostkey) == -1) |
|
|
if (verify_host_key(xxx_host, xxx_hostaddr, hostkey, |
|
&cert_downgraded) == -1) |
|
fatal("Host key verification failed."); |
fatal("Host key verification failed."); |
if (cert_downgraded) |
|
ssh->kex->flags |= KEX_HOSTCERT_CONVERT; |
|
return 0; |
return 0; |
} |
} |
|
|