diff options
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; } } |