pki --pkcs7: Set default to res = 1

This commit is contained in:
Andreas Steffen
2023-11-13 12:39:10 +01:00
committed by Tobias Brunner
parent 3cb8434367
commit 09e2a9ff50
+2 -2
View File
@@ -288,7 +288,7 @@ static int pkcs7()
hash_algorithm_t digest = HASH_UNKNOWN;
signature_params_t *scheme = NULL;
mem_cred_t *creds;
int res = 0;
int res = 1;
FILE *in;
enum {
OP_NONE,
@@ -450,7 +450,7 @@ static int pkcs7()
case OP_DECRYPT:
if (!key)
{
fprintf(stderr, "decryption requires a private key\n");
error = "decryption requires a private key";
break;
}
res = decrypt(data);