mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
sig calculation and output follows pbp scheme. unittests, doc and
detached sigs still missing.
This commit is contained in:
@@ -29,6 +29,7 @@ int pcpsign(char *infile, char *outfile, char *passwd, int z85) {
|
||||
pcp_key_t *secret = NULL;
|
||||
|
||||
secret = pcp_find_primary_secret();
|
||||
|
||||
if(secret == NULL) {
|
||||
fatal("Could not find a secret key in vault %s!\n", vault->filename);
|
||||
goto errs1;
|
||||
@@ -113,13 +114,10 @@ int pcpverify(char *infile, char *id) {
|
||||
}
|
||||
}
|
||||
|
||||
if(message == NULL) {
|
||||
fprintf(stderr, "Could not verify signature\n");
|
||||
}
|
||||
else
|
||||
if(message != NULL) {
|
||||
free(message);
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
errv4:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user