changed secret key export format, now we encrypt the whole thing, and we use an extra passphrase to do so. import wrapper in src/ not implemented yet.

This commit is contained in:
git@daemon.de
2014-02-12 16:47:24 +01:00
parent a78dd9c6eb
commit 621cece568
12 changed files with 294 additions and 148 deletions

View File

@@ -366,7 +366,7 @@ int main (int argc, char **argv) {
if(vault != NULL) {
switch (mode) {
case PCP_MODE_KEYGEN:
pcp_keygen(xpass, outfile);
pcp_keygen(xpass);
if(xpass != NULL)
free(xpass);
break;
@@ -379,12 +379,12 @@ int main (int argc, char **argv) {
if(useid) {
id = pcp_normalize_id(keyid);
if(id != NULL) {
pcp_exportsecret(id, useid, outfile);
pcp_exportsecret(id, useid, outfile, armor);
free(id);
}
}
else {
pcp_exportsecret(NULL, useid, outfile);
pcp_exportsecret(NULL, useid, outfile, armor);
}
break;