1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 13:32:48 -05:00

Add some basic framework code preparatory to adding key export.

[originally from svn r1675]
This commit is contained in:
Simon Tatham
2002-05-13 16:56:11 +00:00
parent 82d2d94d26
commit ed29fdc91c
3 changed files with 67 additions and 5 deletions

3
ssh.h
View File

@ -311,6 +311,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);