summaryrefslogtreecommitdiffstats
path: root/crypto/engine
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2002-01-22 02:06:33 +0000
committerDr. Stephen Henson <steve@openssl.org>2002-01-22 02:06:33 +0000
commitf78d4a35f865d7678a8b8e7a496e72a19f3df014 (patch)
treea65569230a864f6ce9b1f7d3a0be9cd52bb67966 /crypto/engine
parentdf5eaa8a5297d42d1b44cfcf1210e7b016d3f7c1 (diff)
Constification.
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/eng_fat.c4
-rw-r--r--crypto/engine/engine.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/engine/eng_fat.c b/crypto/engine/eng_fat.c
index e101530ab1..d49aa7ed40 100644
--- a/crypto/engine/eng_fat.c
+++ b/crypto/engine/eng_fat.c
@@ -84,7 +84,7 @@ int ENGINE_set_default(ENGINE *e, unsigned int flags)
/* Set default algorithms using a string */
-int int_def_cb(char *alg, int len, void *arg)
+int int_def_cb(const char *alg, int len, void *arg)
{
unsigned int *pflags = arg;
if (!strncmp(alg, "ALL", len))
@@ -107,7 +107,7 @@ int int_def_cb(char *alg, int len, void *arg)
}
-int ENGINE_set_default_string(ENGINE *e, char *list)
+int ENGINE_set_default_string(ENGINE *e, const char *list)
{
unsigned int flags = 0;
if (!CONF_parse_list(list, ',', 1, int_def_cb, &flags))
diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h
index 1dcb53bb1b..15fca9ba7e 100644
--- a/crypto/engine/engine.h
+++ b/crypto/engine/engine.h
@@ -503,7 +503,7 @@ ENGINE *ENGINE_get_digest_engine(int nid);
* structure will have had its reference count up'd so the caller
* should still free their own reference 'e'. */
int ENGINE_set_default_RSA(ENGINE *e);
-int ENGINE_set_default_string(ENGINE *e, char *list);
+int ENGINE_set_default_string(ENGINE *e, const char *list);
/* Same for the other "methods" */
int ENGINE_set_default_DSA(ENGINE *e);
int ENGINE_set_default_DH(ENGINE *e);