Avoid case in ca.c fix.
This commit is contained in:
parent
8ecfbedd85
commit
c451bd828f
@ -294,6 +294,9 @@ int index_index(CA_DB *db);
|
|||||||
int save_index(const char *dbfile, const char *suffix, CA_DB *db);
|
int save_index(const char *dbfile, const char *suffix, CA_DB *db);
|
||||||
int rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix);
|
int rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix);
|
||||||
void free_index(CA_DB *db);
|
void free_index(CA_DB *db);
|
||||||
|
#define index_name_cmp_noconst(a, b) \
|
||||||
|
index_name_cmp((const CSTRING *)CHECKED_PTR_OF(STRING, a), \
|
||||||
|
(const CSTRING *)CHECKED_PTR_OF(STRING, b))
|
||||||
int index_name_cmp(const CSTRING *a, const CSTRING *b);
|
int index_name_cmp(const CSTRING *a, const CSTRING *b);
|
||||||
int parse_yesno(const char *str, int def);
|
int parse_yesno(const char *str, int def);
|
||||||
|
|
||||||
|
@ -2481,7 +2481,7 @@ static int do_revoke(X509 *x509, CA_DB *db, int type, char *value)
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (index_name_cmp((CSTRING *)row, (CSTRING *)rrow))
|
else if (index_name_cmp_noconst(row, rrow))
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err,"ERROR:name does not match %s\n",
|
BIO_printf(bio_err,"ERROR:name does not match %s\n",
|
||||||
row[DB_name]);
|
row[DB_name]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user