mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
pki --pkcs7: Set default to res = 1
This commit is contained in:
parent
3cb8434367
commit
09e2a9ff50
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user