mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user