added yaml and perl pubkey export formats (c and python will follow)

This commit is contained in:
git@daemon.de
2014-02-13 17:05:22 +01:00
parent 1c46de629b
commit 7408ebd90c
4 changed files with 116 additions and 4 deletions

View File

@@ -190,8 +190,13 @@ typedef struct _pcp_ks_bundle_t pcp_ks_bundle_t;
/* pubkey export formats */
#define EXP_FORMAT_NATIVE 0x01
#define EXP_FORMAT_PBP 0x03
#define EXP_FORMAT_NATIVE 1
#define EXP_FORMAT_PBP 2
#define EXP_FORMAT_YAML 3
#define EXP_FORMAT_C 4
#define EXP_FORMAT_PY 5
#define EXP_FORMAT_PERL 6
/* export self signed public key from master secret */
Buffer *pcp_export_rfc_pub (pcp_key_t *sk);
@@ -202,6 +207,12 @@ Buffer *pcp_export_rfc_pub (pcp_key_t *sk);
/* export public key in pbp format */
Buffer *pcp_export_pbp_pub(pcp_key_t *sk);
/* export public key in yaml format */
Buffer *pcp_export_yaml_pub(pcp_key_t *sk);
/* export public key in perl format */
Buffer *pcp_export_perl_pub(pcp_key_t *sk);
/* export secret key */
Buffer *pcp_export_secret(pcp_key_t *sk, char *passphrase);