mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Work around key algorithm naming change in OpenSSH <= 7.7.
When you send a "publickey" USERAUTH_REQUEST containing a certified RSA key, and you want to use a SHA-2 based RSA algorithm, modern OpenSSH expects you to send the algorithm string as rsa-sha2-NNN-cert-v01@openssh.com. But 7.7 and earlier didn't recognise those names, and expected the algorithm string in the userauth request packet to be ssh-rsa-cert-v01@... and would then follow it with an rsa-sha2-NNN signature. OpenSSH itself has a bug workaround for its own older versions. Follow suit.
This commit is contained in:
@ -167,6 +167,7 @@ typedef const char *HelpCtx;
|
||||
#define WINHELP_CTX_ssh_bugs_pksessid2 "config-ssh-bug-pksessid2"
|
||||
#define WINHELP_CTX_ssh_bugs_rekey2 "config-ssh-bug-rekey"
|
||||
#define WINHELP_CTX_ssh_bugs_maxpkt2 "config-ssh-bug-maxpkt2"
|
||||
#define WINHELP_CTX_ssh_bugs_rsa_sha2_cert_userauth "config-ssh-bug-rsa-sha2-cert-userauth"
|
||||
#define WINHELP_CTX_ssh_bugs_winadj "config-ssh-bug-winadj"
|
||||
#define WINHELP_CTX_ssh_bugs_chanreq "config-ssh-bug-chanreq"
|
||||
#define WINHELP_CTX_ssh_bugs_oldgex2 "config-ssh-bug-oldgex2"
|
||||
|
Reference in New Issue
Block a user