summaryrefslogtreecommitdiffstats
path: root/crypto/engine/eng_cnf.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2002-01-22 01:40:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2002-01-22 01:40:18 +0000
commitdf5eaa8a5297d42d1b44cfcf1210e7b016d3f7c1 (patch)
treec33133c2de7ca506de2789946bbdcd58b783ad89 /crypto/engine/eng_cnf.c
parent6ce46d69f5d940b07e8f4f191121546c3f33ada6 (diff)
default_algorithms option in ENGINE config.
Diffstat (limited to 'crypto/engine/eng_cnf.c')
-rw-r--r--crypto/engine/eng_cnf.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/engine/eng_cnf.c b/crypto/engine/eng_cnf.c
index 8e3f894f66..3f5aa73943 100644
--- a/crypto/engine/eng_cnf.c
+++ b/crypto/engine/eng_cnf.c
@@ -138,7 +138,12 @@ int int_engine_configure(char *name, char *value, const CONF *cnf)
*/
if (!strcmp(ctrlvalue, "EMPTY"))
ctrlvalue = NULL;
- if (!ENGINE_ctrl_cmd_string(e,
+ if (!strcmp(ctrlname, "default_algorithms"))
+ {
+ if (!ENGINE_set_default_string(e, ctrlvalue))
+ goto err;
+ }
+ else if (!ENGINE_ctrl_cmd_string(e,
ctrlname, ctrlvalue, 0))
return 0;
}
@@ -151,7 +156,7 @@ int int_engine_configure(char *name, char *value, const CONF *cnf)
ENGINE_free(e);
return ret;
}
-
+
static int int_engine_module_init(CONF_IMODULE *md, const CONF *cnf)
{