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.
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);