Constification.

This commit is contained in:
Dr. Stephen Henson 2002-01-22 02:06:33 +00:00
parent df5eaa8a52
commit f78d4a35f8
4 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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(;;)

View file

@ -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))

View file

@ -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);