Fix parameter error messages.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 11 Apr 2006 18:30:25 +0000 (18:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 11 Apr 2006 18:30:25 +0000 (18:30 +0000)
apps/genpkey.c

index 453dd50..3443287 100644 (file)
@@ -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;
                        }
                }