1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

Dimitry Andric spotted that DH gex with SHA-256 was overflowing a buffer.

Fixed, and added paranoia so that this shouldn't happen again.

[originally from svn r6606]
[this svn revision also touched putty-wishlist]
This commit is contained in:
Jacob Nevins
2006-03-12 19:24:05 +00:00
parent 2cf27e43bb
commit 078c516a45
2 changed files with 27 additions and 5 deletions

3
ssh.h
View File

@ -252,6 +252,9 @@ struct ssh2_userkey {
char *comment; /* the key comment */
};
/* The maximum length of any hash algorithm used in kex. (bytes) */
#define SSH2_KEX_MAX_HASH_LEN (32) /* SHA-256 */
extern const struct ssh_cipher ssh_3des;
extern const struct ssh_cipher ssh_des;
extern const struct ssh_cipher ssh_blowfish_ssh1;