Skip to content

Commit

Permalink
Constification.
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Jan 22, 2002
1 parent df5eaa8 commit f78d4a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions crypto/conf/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions crypto/conf/conf_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(;;)
Expand Down
4 changes: 2 additions & 2 deletions crypto/engine/eng_fat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion crypto/engine/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f78d4a3

Please sign in to comment.