summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/genpkey.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/genpkey.c b/apps/genpkey.c
index 9da5b556e8..94453af15c 100644
--- a/apps/genpkey.c
+++ b/apps/genpkey.c
@@ -125,8 +125,12 @@ int genpkey_main(int argc, char **argv)
}
break;
case OPT_GENPARAM:
- if (ctx != NULL)
+ if (ctx != NULL) {
+ BIO_printf(bio_err,
+ "%s: '-genparam' option must be set before"
+ " the '-algorithm' option.\n", prog);
goto opthelp;
+ }
do_param = 1;
break;
case OPT_TEXT: