summaryrefslogtreecommitdiffstats
path: root/crypto/engine/eng_cnf.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2002-02-24 16:20:50 +0000
committerDr. Stephen Henson <steve@openssl.org>2002-02-24 16:20:50 +0000
commit4a3e6bce79825137ef90261b6c195ee49bec6780 (patch)
tree4412ffafb54e8d1261b21265542b8401976acaf7 /crypto/engine/eng_cnf.c
parenta3829cb720c235a93b6d1067555d7d113a8ba326 (diff)
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.
Diffstat (limited to 'crypto/engine/eng_cnf.c')
-rw-r--r--crypto/engine/eng_cnf.c2
1 files changed, 2 insertions, 0 deletions
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;
}