diff options
Diffstat (limited to 'apps/x509.c')
-rw-r--r-- | apps/x509.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/x509.c b/apps/x509.c index 5be90740c6..b2e4ec631f 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -448,23 +448,7 @@ bad: goto end; } - 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 = setup_engine(bio_err, engine, 0); if (need_rand) app_RAND_load_file(NULL, bio_err, 0); |