mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 18:17:32 -05:00
Centralise public-key output code into sshpubk.c.
There was a fair amount of duplication between Windows and Unix PuTTYgen, and some confusion over writing things to FILE * and formatting them internally into strings. I think all the public-key output code now lives in sshpubk.c, and there's only one copy of the code to generate each format.
This commit is contained in:
6
ssh.h
6
ssh.h
@ -716,6 +716,12 @@ enum {
|
||||
SSH_KEYTYPE_SSH2_PUBLIC_RFC4716,
|
||||
SSH_KEYTYPE_SSH2_PUBLIC_OPENSSH
|
||||
};
|
||||
char *ssh1_pubkey_str(struct RSAKey *ssh1key);
|
||||
void ssh1_write_pubkey(FILE *fp, struct RSAKey *ssh1key);
|
||||
char *ssh2_pubkey_openssh_str(struct ssh2_userkey *key);
|
||||
void ssh2_write_pubkey(FILE *fp, const char *comment,
|
||||
const void *v_pub_blob, int pub_len,
|
||||
int keytype);
|
||||
int key_type(const Filename *filename);
|
||||
char *key_type_to_str(int type);
|
||||
|
||||
|
Reference in New Issue
Block a user