From f78d4a35f865d7678a8b8e7a496e72a19f3df014 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 22 Jan 2002 02:06:33 +0000 Subject: [PATCH] Constification. --- crypto/conf/conf.h | 4 ++-- crypto/conf/conf_mod.c | 6 +++--- crypto/engine/eng_fat.c | 4 ++-- crypto/engine/engine.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crypto/conf/conf.h b/crypto/conf/conf.h index 882d75c74e..a0bbeb4d58 100644 --- a/crypto/conf/conf.h +++ b/crypto/conf/conf.h @@ -190,8 +190,8 @@ void CONF_module_set_usr_data(CONF_MODULE *pmod, void *usr_data); char *CONF_get1_default_config_file(void); -int CONF_parse_list(char *list, int sep, int nospc, - int (*list_cb)(char *elem, int len, void *usr), void *arg); +int CONF_parse_list(const char *list, int sep, int nospc, + int (*list_cb)(const char *elem, int len, void *usr), void *arg); /* BEGIN ERROR CODES */ /* The following lines are auto generated by the script mkerr.pl. Any changes diff --git a/crypto/conf/conf_mod.c b/crypto/conf/conf_mod.c index 100d72ed03..23e1f191da 100644 --- a/crypto/conf/conf_mod.c +++ b/crypto/conf/conf_mod.c @@ -557,11 +557,11 @@ char *CONF_get1_default_config_file(void) * be used to parse comma separated lists for example. */ -int CONF_parse_list(char *list, int sep, int nospc, - int (*list_cb)(char *elem, int len, void *usr), void *arg) +int CONF_parse_list(const char *list, int sep, int nospc, + int (*list_cb)(const char *elem, int len, void *usr), void *arg) { int ret; - char *lstart, *tmpend, *p; + const char *lstart, *tmpend, *p; lstart = list; for(;;) 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); -- 2.25.1