int badarg = 0;
int ret = 1;
- int do_param = -1;
+ int do_param = 0;
if (bio_err == NULL)
bio_err = BIO_new_fp (stderr, BIO_NOCLOSE);
{
if (!args[1])
goto bad;
- if (do_param == -1)
- do_param = 0;
if (!init_gen_str(bio_err, &ctx, *(++args),e, do_param))
goto end;
}
{
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;
}
}
if (EVP_PKEY_keygen(ctx, &pkey) <= 0)
{
BIO_puts(bio_err, "Error generating key\n");
+ ERR_print_errors(bio_err);
goto end;
}
}