diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-08-05 00:15:22 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-08-05 00:15:22 +0200 |
commit | 8f2e4fdf860705a0d6868daba187e055781f7755 (patch) | |
tree | 06480b418e5bcdebb679dc169642099232bcd0b8 /apps/smime.c | |
parent | 3-4 times better RSA/DSA performance on WIN64A target. Well, on AMD64 CPU, (diff) | |
download | openssl-8f2e4fdf860705a0d6868daba187e055781f7755.tar.xz openssl-8f2e4fdf860705a0d6868daba187e055781f7755.zip |
Allow PKCS7_decrypt() to work if no cert supplied.
Diffstat (limited to 'apps/smime.c')
-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; } } |