diff options
Diffstat (limited to 'apps/dsaparam.c')
-rw-r--r-- | apps/dsaparam.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/dsaparam.c b/apps/dsaparam.c index e923f10dbb..7ce49d90c3 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -232,23 +232,7 @@ bad: } } - if (engine != NULL) - { - if((e = ENGINE_by_id(engine)) == NULL) - { - BIO_printf(bio_err,"invalid engine \"%s\"\n", - engine); - goto end; - } - if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) - { - BIO_printf(bio_err,"can't use that engine\n"); - goto end; - } - BIO_printf(bio_err,"engine \"%s\" set.\n", engine); - /* Free our "structural" reference. */ - ENGINE_free(e); - } + e = ENGINE_setup(engine, bio_err); if (need_rand) { |