summaryrefslogtreecommitdiffstats
path: root/apps/smime.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2005-08-04 22:15:22 +0000
committerDr. Stephen Henson <steve@openssl.org>2005-08-04 22:15:22 +0000
commit8f2e4fdf860705a0d6868daba187e055781f7755 (patch)
tree06480b418e5bcdebb679dc169642099232bcd0b8 /apps/smime.c
parent11de71b04c750e6be6f5e8ac875655a2a67efaf7 (diff)
Allow PKCS7_decrypt() to work if no cert supplied.
Diffstat (limited to 'apps/smime.c')
-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;
}
}