Constification.
diff --git a/crypto/conf/conf.h b/crypto/conf/conf.h index 882d75c..a0bbeb4 100644 --- a/crypto/conf/conf.h +++ b/crypto/conf/conf.h
@@ -190,8 +190,8 @@ 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 100d72e..23e1f19 100644 --- a/crypto/conf/conf_mod.c +++ b/crypto/conf/conf_mod.c
@@ -557,11 +557,11 @@ * 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 e101530..d49aa7e 100644 --- a/crypto/engine/eng_fat.c +++ b/crypto/engine/eng_fat.c
@@ -84,7 +84,7 @@ /* 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 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 1dcb53b..15fca9b 100644 --- a/crypto/engine/engine.h +++ b/crypto/engine/engine.h
@@ -503,7 +503,7 @@ * 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);