1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +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:
Simon Tatham 2016-03-21 18:59:01 +00:00
parent e786452cb2
commit 2d217ec862

2
ssh.c
View File

@ -11469,7 +11469,7 @@ static const struct telnet_special *ssh_get_specials(void *handle)
const struct ssh_signkey *alg = const struct ssh_signkey *alg =
hostkey_algs[ssh->uncert_hostkeys[i]]; hostkey_algs[ssh->uncert_hostkeys[i]];
uncert[0].name = alg->name; 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);
} }
ADD_SPECIALS(uncert_end); ADD_SPECIALS(uncert_end);