Commit b5a93e22 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Call setup_engine after autoconfig.

parent c128bb0f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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)
		{