In ca.c setup engine after autoconfig so any dynamic engines are visible.

This commit is contained in:
Dr. Stephen Henson 2004-08-06 12:43:54 +00:00
parent 44dd6865b9
commit efeb352163

View File

@ -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)
{