be more strict in parsing key type names. Only allow shortnames (e.g
authordjm <djm@openbsd.org>
Wed, 4 Sep 2024 05:33:34 +0000 (05:33 +0000)
committerdjm <djm@openbsd.org>
Wed, 4 Sep 2024 05:33:34 +0000 (05:33 +0000)
commitbf801ff5b4c5079e929dac055e8d3f7fc5b07470
tree0ef8dd84aaf880986e277b604cf650176de56d0e
parent9d5703238c50cb36d9916f007cc02a8fb0e8b642
be more strict in parsing key type names. Only allow shortnames (e.g
"rsa") in user-interface code and require full SSH protocol names (e.g.
"ssh-rsa") everywhere else.

Prompted by bz3725; ok markus@
usr.bin/ssh/ssh-keygen.c
usr.bin/ssh/ssh-keyscan.c
usr.bin/ssh/sshkey.c
usr.bin/ssh/sshkey.h