We're getting a clash with C++ because it has a type called 'list'.
Therefore, change all instances of the symbol 'list' to something else. PR: 758 Submitted by: Frédéric Giudicelli <groups@newpki.org>
This commit is contained in:
@@ -107,14 +107,14 @@ static int int_def_cb(const char *alg, int len, void *arg)
|
||||
}
|
||||
|
||||
|
||||
int ENGINE_set_default_string(ENGINE *e, const char *list)
|
||||
int ENGINE_set_default_string(ENGINE *e, const char *def_list)
|
||||
{
|
||||
unsigned int flags = 0;
|
||||
if (!CONF_parse_list(list, ',', 1, int_def_cb, &flags))
|
||||
if (!CONF_parse_list(def_list, ',', 1, int_def_cb, &flags))
|
||||
{
|
||||
ENGINEerr(ENGINE_F_ENGINE_SET_DEFAULT_STRING,
|
||||
ENGINE_R_INVALID_STRING);
|
||||
ERR_add_error_data(2, "str=",list);
|
||||
ERR_add_error_data(2, "str=",def_list);
|
||||
return 0;
|
||||
}
|
||||
return ENGINE_set_default(e, flags);
|
||||
|
||||
@@ -513,7 +513,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, const char *list);
|
||||
int ENGINE_set_default_string(ENGINE *e, const char *def_list);
|
||||
/* Same for the other "methods" */
|
||||
int ENGINE_set_default_DSA(ENGINE *e);
|
||||
int ENGINE_set_default_DH(ENGINE *e);
|
||||
|
||||
Reference in New Issue
Block a user