1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-13 00:57:33 -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

View File

@ -89,6 +89,29 @@ struct ssh2_userkey *import_ssh2(char *filename, int type, char *passphrase)
return NULL;
}
/*
* Export an SSH1 key.
*/
int export_ssh1(char *filename, int type, struct RSAKey *key, char *passphrase)
{
return 0;
}
/*
* Export an SSH2 key.
*/
int export_ssh2(char *filename, int type,
struct ssh2_userkey *key, char *passphrase)
{
#if 0
if (type == SSH_KEYTYPE_OPENSSH)
return openssh_write(filename, key, passphrase);
if (type == SSH_KEYTYPE_SSHCOM)
return sshcom_write(filename, key, passphrase);
#endif
return 0;
}
/* ----------------------------------------------------------------------
* Helper routines. (The base64 ones are defined in sshpubk.c.)
*/