X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9dda64599614c85260f2559f6b9688c0e971edb9..514702987c9252fcb0ab98882a6603b3bd0505ce:/ssh.h diff --git a/ssh.h b/ssh.h index 0cbdd47b..59a7b460 100644 --- a/ssh.h +++ b/ssh.h @@ -227,7 +227,7 @@ extern char sshver[]; * that fails. This variable is the means by which scp.c can reach * into the SSH code and find out which one it got. */ -extern int ssh_fallback_cmd; +extern int ssh_fallback_cmd(void *handle); #ifndef MSCRYPTOAPI void SHATransform(word32 * digest, word32 * data); @@ -238,8 +238,11 @@ void random_add_noise(void *noise, int length); void random_add_heavynoise(void *noise, int length); void logevent(char *); -void *new_sock_channel(Socket s); // allocates and register a new channel for port forwarding -void ssh_send_port_open(void *channel, char *hostname, int port, char *org); + +/* Allocate and register a new channel for port forwarding */ +void *new_sock_channel(void *handle, Socket s); +void ssh_send_port_open(void *handle, void *channel, + char *hostname, int port, char *org); Bignum copybn(Bignum b); Bignum bn_power_2(int n); @@ -311,6 +314,9 @@ int import_target_type(int type); int import_encrypted(char *filename, int type, char **comment); int import_ssh1(char *filename, int type, struct RSAKey *key,char *passphrase); struct ssh2_userkey *import_ssh2(char *filename, int type, char *passphrase); +int export_ssh1(char *filename, int type, struct RSAKey *key,char *passphrase); +int export_ssh2(char *filename, int type, + struct ssh2_userkey *key, char *passphrase); void des3_decrypt_pubkey(unsigned char *key, unsigned char *blk, int len); void des3_encrypt_pubkey(unsigned char *key, unsigned char *blk, int len);