diff options
author | Richard Levitte <levitte@openssl.org> | 2001-06-18 08:22:33 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-06-18 08:22:33 +0200 |
commit | 531d630b5cfe0c50de122f0387a65473b4746bf8 (patch) | |
tree | f74f6b2b970014bb6496b9e3fa10a6f701eb936c /apps/verify.c | |
parent | Fix a memory leak (there's another around here somewhere, though). (diff) | |
download | openssl-531d630b5cfe0c50de122f0387a65473b4746bf8.tar.xz openssl-531d630b5cfe0c50de122f0387a65473b4746bf8.zip |
Provide an application-common setup function for engines and use it
everywhere.
Diffstat (limited to 'apps/verify.c')
-rw-r--r-- | apps/verify.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/verify.c b/apps/verify.c index 5b9d719d9f..d5f07c2db4 100644 --- a/apps/verify.c +++ b/apps/verify.c @@ -166,23 +166,7 @@ int MAIN(int argc, char **argv) break; } - 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); lookup=X509_STORE_add_lookup(cert_ctx,X509_LOOKUP_file()); if (lookup == NULL) abort(); |