1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-26 01:32:25 +00:00
putty-source/utils
Simon Tatham e24444dba8 Fix manual host key validation.
When the user tries to add a string to the CONF_ssh_manual_hostkeys
list box, we call a validation function which is supposed to look
along the string for either a valid-looking SSH key fingerprint, or a
base64 public key blob, and after it finds it, move that key alone to
the start of the input string and delete all the surrounding cruft.

SHA-256 key fingerprints were being detected all right, but not moved
to the start of the string sensibly - we just returned true without
rewriting anything. (Probably inadequate testing when I added SHA-256
fairly recently.)

And the code that moved a full public-key blob to the front of the
string triggered an ASan error on the grounds that it used strcpy with
the source and destination overlapping. I actually hadn't known that
was supposed to be a bad thing these days! But it's easily fixed by
making it a memmove instead.
2021-10-25 18:12:21 +01:00
..
antispoof.c Promote ssh2_userauth_antispoof_msg into utils. 2021-09-16 17:49:31 +01:00
base64_decode_atom.c
base64_encode_atom.c
bufchain.c
buildinfo.c Adopt a new universal implementation of smemclr(). 2021-04-18 08:30:44 +01:00
burnstr.c
chomp.c
CMakeLists.txt Add 'description' methods for Backend and Plug. 2021-10-24 10:48:25 +01:00
conf_dest.c
conf_launchable.c
conf.c
ctrlparse.c
debug.c
default_description.c Add 'description' methods for Backend and Plug. 2021-10-24 10:48:25 +01:00
dup_mb_to_wc.c win_set_[icon_]title: send a codepage along with the string. 2021-10-16 14:00:46 +01:00
dupcat.c
dupprintf.c
dupstr.c
encode_utf8.c
encode_wide_string_as_utf8.c win_set_[icon_]title: send a codepage along with the string. 2021-10-16 14:00:46 +01:00
fgetline.c
host_strchr_internal.c Build various unit-test main() programs in utils. 2021-04-18 08:30:44 +01:00
host_strchr.c
host_strcspn.c
host_strduptrim.c
host_strrchr.c
ltime.c
marshal.c
memory.c
memxor.c
miscucs.c
null_lp.c
nullseat.c Reorganise host key checking and confirmation. 2021-10-25 18:12:17 +01:00
nullstrcmp.c
out_of_memory.c
parse_blocksize.c
prompts.c free_prompts: deal with a reference from an Ldisc. 2021-09-16 13:55:10 +01:00
ptrlen.c
read_file_into.c
seat_connection_fatal.c
sessprep.c
sk_free_peer_info.c
smemclr.c Fix typo in comment. 2021-04-19 17:14:01 +01:00
smemeq.c
ssh2_pick_fingerprint.c
sshutils.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
strbuf.c
string_length_for_printf.c
stripctrl.c
tempseat.c Reorganise host key checking and confirmation. 2021-10-25 18:12:17 +01:00
tree234.c Build various unit-test main() programs in utils. 2021-04-18 08:30:44 +01:00
utils.h
validate_manual_hostkey.c Fix manual host key validation. 2021-10-25 18:12:21 +01:00
version.c
wcwidth.c wcwidth.c: update to Unicode 14.0.0. 2021-10-10 14:55:15 +01:00
wildcard.c Build various unit-test main() programs in utils. 2021-04-18 08:30:44 +01:00
write_c_string_literal.c
x11_dehexify.c
x11_identify_auth_proto.c
x11_make_greeting.c
x11_parse_ip.c
x11authfile.c
x11authnames.c