In ca.c setup engine after autoconfig so any dynamic engines are visible.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 6 Aug 2004 12:43:54 +0000 (12:43 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 6 Aug 2004 12:43:54 +0000 (12:43 +0000)
apps/ca.c

index f7cc6a12a118d6ae4891cf4d6d3f09023867fb55..cacacb6ffd622203b4fd27451c301abf432c3719 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -538,10 +538,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");
@@ -586,6 +582,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)
                {