summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2005-08-04 22:10:05 +0000
committerDr. Stephen Henson <steve@openssl.org>2005-08-04 22:10:05 +0000
commit1682e8fb12ab997dca7b635c0d075fe9a02c4a08 (patch)
tree93eb988af9676dc9cae3d5c5d9e31d7f82b86f02 /apps
parent984aefe0e84429cbb58a4a7ae0515621c0205c57 (diff)
Allow PKCS7_decrypt() to work if no cert supplied.
Diffstat (limited to 'apps')
-rw-r--r--apps/smime.c4
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;
}
}