diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-08-04 22:15:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-08-04 22:15:22 +0000 |
commit | 8f2e4fdf860705a0d6868daba187e055781f7755 (patch) | |
tree | 06480b418e5bcdebb679dc169642099232bcd0b8 /apps | |
parent | 11de71b04c750e6be6f5e8ac875655a2a67efaf7 (diff) | |
download | openssl-8f2e4fdf860705a0d6868daba187e055781f7755.tar.gz |
Allow PKCS7_decrypt() to work if no cert supplied.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/smime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/smime.c b/apps/smime.c index 253cca7f59..250fd69a98 100644 --- a/apps/smime.c +++ b/apps/smime.c @@ -384,9 +384,9 @@ int MAIN(int argc, char **argv) } else if (operation == SMIME_DECRYPT) { - if (!recipfile) + if (!recipfile && !keyfile) { - BIO_printf(bio_err, "No recipient certificate and key specified\n"); + BIO_printf(bio_err, "No recipient certificate or key specified\n"); badarg = 1; } } |