aboutsummaryrefslogtreecommitdiff
path: root/apps/ca.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-06-02 10:37:53 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-06-02 10:37:53 +0000
commitc173fce4e200f4bc34e0187339c4297e1e665e29 (patch)
tree86bc9bf5003b10ba4229af05ff54f7a5f45c37a8 /apps/ca.c
parent953174f46ec1e1bb157f51265d6b7a083fab0d3e (diff)
downloadopenssl-c173fce4e200f4bc34e0187339c4297e1e665e29.zip
openssl-c173fce4e200f4bc34e0187339c4297e1e665e29.tar.gz
openssl-c173fce4e200f4bc34e0187339c4297e1e665e29.tar.bz2
Avoid cast with wrapper function.
Diffstat (limited to 'apps/ca.c')
-rw-r--r--apps/ca.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 560a4d9..a659702 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -2398,6 +2398,9 @@ static int check_time_format(const char *str)
return(ASN1_UTCTIME_check(&tm));
}
+static int index_name_cmp_nc(STRING *a, STRING *b)
+ { return index_name_cmp(a, b); }
+
static int do_revoke(X509 *x509, CA_DB *db, int type, char *value)
{
ASN1_UTCTIME *tm=NULL;
@@ -2481,7 +2484,7 @@ static int do_revoke(X509 *x509, CA_DB *db, int type, char *value)
goto err;
}
- else if (index_name_cmp((const CSTRING *)row,(const CSTRING *)rrow))
+ else if (index_name_cmp_nc(row, rrow))
{
BIO_printf(bio_err,"ERROR:name does not match %s\n",
row[DB_name]);