]> granicus.if.org Git - openssl/commitdiff
Call setup_engine after autoconfig.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 6 Aug 2004 12:44:34 +0000 (12:44 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 6 Aug 2004 12:44:34 +0000 (12:44 +0000)
apps/ca.c

index 0fd445613d4ff25e62571afb5a3c7c8e6a0b7e93..d115617b22d97d2637b39793648a2ee50b068ba6 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -549,10 +549,6 @@ bad:
 
        ERR_load_crypto_strings();
 
-#ifndef OPENSSL_NO_ENGINE
-       e = setup_engine(bio_err, engine, 0);
-#endif
-
        /*****************************************************************/
        tofree=NULL;
        if (configfile == NULL) configfile = getenv("OPENSSL_CONF");
@@ -597,6 +593,10 @@ bad:
        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)
                {