version 1.380, 2022/06/03 04:30:46 |
version 1.381, 2022/11/09 01:37:44 |
|
|
* Keys received from the server and a flag for each indicating |
* Keys received from the server and a flag for each indicating |
* whether they already exist in known_hosts. |
* whether they already exist in known_hosts. |
* keys_match is filled in by hostkeys_find() and later (for new |
* keys_match is filled in by hostkeys_find() and later (for new |
* keys) by client_global_hostkeys_private_confirm(). |
* keys) by client_global_hostkeys_prove_confirm(). |
*/ |
*/ |
struct sshkey **keys; |
struct sshkey **keys; |
u_int *keys_match; /* mask of HKF_MATCH_* from hostfile.h */ |
u_int *keys_match; /* mask of HKF_MATCH_* from hostfile.h */ |
|
|
} |
} |
|
|
static void |
static void |
client_global_hostkeys_private_confirm(struct ssh *ssh, int type, |
client_global_hostkeys_prove_confirm(struct ssh *ssh, int type, |
u_int32_t seq, void *_ctx) |
u_int32_t seq, void *_ctx) |
{ |
{ |
struct hostkeys_update_ctx *ctx = (struct hostkeys_update_ctx *)_ctx; |
struct hostkeys_update_ctx *ctx = (struct hostkeys_update_ctx *)_ctx; |
|
|
if ((r = sshpkt_send(ssh)) != 0) |
if ((r = sshpkt_send(ssh)) != 0) |
fatal_fr(r, "send hostkeys-prove"); |
fatal_fr(r, "send hostkeys-prove"); |
client_register_global_confirm( |
client_register_global_confirm( |
client_global_hostkeys_private_confirm, ctx); |
client_global_hostkeys_prove_confirm, ctx); |
ctx = NULL; /* will be freed in callback */ |
ctx = NULL; /* will be freed in callback */ |
|
|
/* Success */ |
/* Success */ |