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
* 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(;;)
/* 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))
}
-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))
* 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);