X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/1983e559d79a20dc24eefd04d081e6f33625f286..9275ca8aed9b69e7b62eab751342833eb637ff1d:/ssh.h diff --git a/ssh.h b/ssh.h index eacddbba..cdb37800 100644 --- a/ssh.h +++ b/ssh.h @@ -51,6 +51,7 @@ void rsasanitise(struct RSAKey *key); int rsastr_len(struct RSAKey *key); void rsastr_fmt(char *str, struct RSAKey *key); void rsa_fingerprint(char *str, int len, struct RSAKey *key); +int rsa_verify(struct RSAKey *key); void freersakey(struct RSAKey *key); typedef unsigned int word32; @@ -159,6 +160,7 @@ struct ssh_compress { void (*decompress_init)(void); int (*decompress)(unsigned char *block, int len, unsigned char **outblock, int *outlen); + int (*disable_compression)(void); }; struct ssh2_userkey { @@ -181,6 +183,11 @@ extern const struct ssh_mac ssh_md5; extern const struct ssh_mac ssh_sha1; extern const struct ssh_mac ssh_sha1_buggy; +/* + * PuTTY version number formatted as an SSH version string. + */ +extern char sshver[]; + #ifndef MSCRYPTOAPI void SHATransform(word32 *digest, word32 *data); #endif @@ -221,7 +228,7 @@ char *bignum_decimal(Bignum x); void dh_setup_group1(void); void dh_setup_group(Bignum pval, Bignum gval); void dh_cleanup(void); -Bignum dh_create_e(void); +Bignum dh_create_e(int nbits); Bignum dh_find_K(Bignum f); int loadrsakey(char *filename, struct RSAKey *key, char *passphrase);