Commit f78d4a35 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Constification.

parent df5eaa8a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+3 −3
Original line number Diff line number Diff line
@@ -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(;;)
+2 −2
Original line number Diff line number Diff line
@@ -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))
+1 −1
Original line number Diff line number Diff line
@@ -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);