From: Dr. Stephen Henson Date: Sun, 24 Feb 2002 16:22:20 +0000 (+0000) Subject: Make the engine config module always add dynamic ENGINEs X-Git-Tag: OpenSSL_0_9_7-beta1~197 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e36e473859ac919c03cc3cdcd897bb4d0875cd8b;p=oweals%2Fopenssl.git Make the engine config module always add dynamic ENGINEs to the list using dynamic_path. This stops ENGINEs which don't supply any default algorithms being automatically freed (because they have no references) and allows them to be accessed by id. Alternative dynamic loading behaviour can be achieved by issuing the dynamic ENGINE ctrls separately in the config file. --- diff --git a/crypto/engine/eng_cnf.c b/crypto/engine/eng_cnf.c index 3f5aa73943..d8d3092f0d 100644 --- a/crypto/engine/eng_cnf.c +++ b/crypto/engine/eng_cnf.c @@ -118,6 +118,8 @@ int int_engine_configure(char *name, char *value, const CONF *cnf) goto err; if (!ENGINE_ctrl_cmd_string(e, "SO_PATH", ctrlvalue, 0)) goto err; + if (!ENGINE_ctrl_cmd_string(e, "LIST_ADD", "2", 0)) + goto err; if (!ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0)) goto err; }