1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Comment misleading string "dh-group14-sha1".

Like "dh-gex-sha1", this string used in session storage really covers
both SHA-256 and SHA-1 variants (since a624786333), with the former
preferred; but backward-compatibility makes it fiddly to change (and
it's mostly not visible to users).
This commit is contained in:
Jacob Nevins 2022-08-31 20:47:48 +01:00
parent 5e2acd9af7
commit d862d8d60d

View File

@ -37,7 +37,9 @@ static const struct keyvalwhere kexnames[] = {
{ "dh-group17-sha512", KEX_DHGROUP17, -1, -1 },
{ "dh-group16-sha512", KEX_DHGROUP16, -1, -1 },
{ "dh-group15-sha512", KEX_DHGROUP15, -1, -1 },
/* Again, this covers both SHA-256 and SHA-1, despite the name: */
{ "dh-group14-sha1", KEX_DHGROUP14, -1, -1 },
/* This one really is only SHA-1, though: */
{ "dh-group1-sha1", KEX_DHGROUP1, KEX_WARN, +1 },
{ "rsa", KEX_RSA, KEX_WARN, -1 },
{ "WARN", KEX_WARN, -1, -1 }