Make the engine config module always add dynamic ENGINEs
authorDr. Stephen Henson <steve@openssl.org>
Sun, 24 Feb 2002 16:20:50 +0000 (16:20 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 24 Feb 2002 16:20:50 +0000 (16:20 +0000)
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.

crypto/engine/eng_cnf.c

index 3f5aa73943d72ae72d51984d9bdaf850f4e241fc..d8d3092f0de63cca55b5f3acf47a2a231674e4ae 100644 (file)
@@ -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;
                                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;
                        }
                        if (!ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0))
                                goto err;
                        }