sig calculation and output follows pbp scheme. unittests, doc and

detached sigs still missing.
This commit is contained in:
TLINDEN
2014-01-26 11:57:23 +01:00
parent 7b7aa6d395
commit 52a7509fe2
5 changed files with 151 additions and 110 deletions

View File

@@ -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: