From 2fbe371f53451ef165331b10006d61e7d77a09c7 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 11 Apr 2006 18:30:25 +0000 Subject: [PATCH] Fix parameter error messages. --- apps/genpkey.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/genpkey.c b/apps/genpkey.c index 453dd500c0..34432874e8 100644 --- a/apps/genpkey.c +++ b/apps/genpkey.c @@ -242,7 +242,8 @@ int MAIN(int argc, char **argv) { if (EVP_PKEY_paramgen(ctx, &pkey) <= 0) { - BIO_puts(bio_err, "Error generating key\n"); + BIO_puts(bio_err, "Error generating parameters\n"); + ERR_print_errors(bio_err); goto end; } } @@ -251,6 +252,7 @@ int MAIN(int argc, char **argv) if (EVP_PKEY_keygen(ctx, &pkey) <= 0) { BIO_puts(bio_err, "Error generating key\n"); + ERR_print_errors(bio_err); goto end; } } -- 2.25.1