diff options
Diffstat (limited to 'apps/smime.c')
-rw-r--r-- | apps/smime.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/smime.c b/apps/smime.c index 869933459b..1ff4ed02fe 100644 --- a/apps/smime.c +++ b/apps/smime.c @@ -319,23 +319,7 @@ int MAIN(int argc, char **argv) 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(!app_passwd(bio_err, passargin, NULL, &passin, NULL)) { BIO_printf(bio_err, "Error getting password\n"); |