mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Ahem. Cross-certify the key the user actually asked for.
I got momentarily confused between whether the special code (TS_LOCALSTART+i) meant the ith entry in the variable uncert_hostkeys[] array, or the ith entry in the fixed hostkey_algs[] array. Now I think everything agrees on it being the latter.
This commit is contained in:
parent
e786452cb2
commit
2d217ec862
2
ssh.c
2
ssh.c
@ -11469,7 +11469,7 @@ static const struct telnet_special *ssh_get_specials(void *handle)
|
||||
const struct ssh_signkey *alg =
|
||||
hostkey_algs[ssh->uncert_hostkeys[i]];
|
||||
uncert[0].name = alg->name;
|
||||
uncert[0].code = TS_LOCALSTART + i;
|
||||
uncert[0].code = TS_LOCALSTART + ssh->uncert_hostkeys[i];
|
||||
ADD_SPECIALS(uncert);
|
||||
}
|
||||
ADD_SPECIALS(uncert_end);
|
||||
|
Loading…
Reference in New Issue
Block a user