fixed json secret key export (now export the whole encrypted blob, since only that blob is being used to parse the key). added support to import json secret keys

This commit is contained in:
TLINDEN
2015-07-09 18:38:27 +02:00
parent da6dda795b
commit 0eb7de0921
3 changed files with 105 additions and 30 deletions

View File

@@ -271,6 +271,7 @@ json_t *pcp_sk2json(pcp_key_t *sk, byte *sig,size_t siglen);
json_t *pcp_pk2json(pcp_pubkey_t *pk);
pcp_ks_bundle_t *pcp_import_pub_json(PCPCTX *ptx, byte *raw, size_t rawsize);
Buffer *pcp_import_secret_json(PCPCTX *ptx, Buffer *json);
#endif