diff options
author | Richard Levitte <levitte@openssl.org> | 2016-10-19 19:46:38 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-10-20 09:04:00 +0200 |
commit | 0df1caa77b793d055714f4d78d9aac7a985babb8 (patch) | |
tree | 87eb3caf0026693522b38c28043f1beb3b37b888 /apps/srp.c | |
parent | aa01b82c69eeb0cfd255174111fc34a7ed5f8429 (diff) |
apps: make setup_engine() and release_engine() available always
This removes some #ifndef clutter.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1644)
Diffstat (limited to 'apps/srp.c')
-rw-r--r-- | apps/srp.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/srp.c b/apps/srp.c index f10df5f224..37341a5d20 100644 --- a/apps/srp.c +++ b/apps/srp.c @@ -293,10 +293,8 @@ int MAIN(int argc, char **argv) int i; long errorline = -1; char *randfile = NULL; -# ifndef OPENSSL_NO_ENGINE ENGINE *e = NULL; char *engine = NULL; -# endif char *tofree = NULL; DB_ATTR db_attr; @@ -412,9 +410,7 @@ int MAIN(int argc, char **argv) ERR_load_crypto_strings(); -# ifndef OPENSSL_NO_ENGINE e = setup_engine(bio_err, engine, 0); -# endif if (!app_passwd(bio_err, passargin, passargout, &passin, &passout)) { BIO_printf(bio_err, "Error getting passwords\n"); @@ -761,10 +757,7 @@ int MAIN(int argc, char **argv) if (db) free_index(db); -#ifndef OPENSSL_NO_ENGINE - if (e != NULL) - release_engine(e); -#endif + release_engine(e); OBJ_cleanup(); apps_shutdown(); OPENSSL_EXIT(ret); |