summaryrefslogtreecommitdiffstats
path: root/apps/ca.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-10-19 19:46:38 +0200
committerRichard Levitte <levitte@openssl.org>2016-10-20 09:04:00 +0200
commit0df1caa77b793d055714f4d78d9aac7a985babb8 (patch)
tree87eb3caf0026693522b38c28043f1beb3b37b888 /apps/ca.c
parentaa01b82c69eeb0cfd255174111fc34a7ed5f8429 (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/ca.c')
-rw-r--r--apps/ca.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 673c641424..20c4ebb043 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -319,9 +319,7 @@ int MAIN(int argc, char **argv)
#define BSIZE 256
MS_STATIC char buf[3][BSIZE];
char *randfile = NULL;
-#ifndef OPENSSL_NO_ENGINE
char *engine = NULL;
-#endif
char *tofree = NULL;
DB_ATTR db_attr;
@@ -595,9 +593,7 @@ int MAIN(int argc, char **argv)
if (!load_config(bio_err, conf))
goto err;
-#ifndef OPENSSL_NO_ENGINE
e = setup_engine(bio_err, engine, 0);
-#endif
/* Lets get the config section we are using */
if (section == NULL) {
@@ -1485,10 +1481,7 @@ int MAIN(int argc, char **argv)
X509_CRL_free(crl);
NCONF_free(conf);
NCONF_free(extconf);
-#ifndef OPENSSL_NO_ENGINE
- if (e != NULL)
- release_engine(e);
-#endif
+ release_engine(e);
OBJ_cleanup();
apps_shutdown();
OPENSSL_EXIT(ret);