X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4bcf919e38e8cacd8c06d6e6ffe11091f57fd4ab..6e8f9cab2a96d296bcc6717356782f3438cab80f:/ssh.h?ds=sidebyside diff --git a/ssh.h b/ssh.h index d0543cd9..e45c653f 100644 --- a/ssh.h +++ b/ssh.h @@ -190,6 +190,7 @@ struct ssh_hash { void (*bytes)(void *, void *, int); void (*final)(void *, unsigned char *); /* also frees context */ int hlen; /* output length in bytes */ + char *text_name; }; struct ssh_kex { @@ -251,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;