diff options
author | Ben Laurie <ben@openssl.org> | 2009-11-05 10:18:11 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2009-11-05 10:18:11 +0000 |
commit | 6156be4da3ab60c1426e21332f91d560c8c10c82 (patch) | |
tree | 76332b3df4129685f1398cb046ca16f3e6ae4a46 /apps | |
parent | d7d4325655f12b0cb02ce50def47c8967df00cf0 (diff) |
Fix compilation problem.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ca.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -227,7 +227,7 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, const EVP_MD *dgst, static int do_revoke(X509 *x509, CA_DB *db, int ext, char *extval); static int get_certificate_status(const char *ser_status, CA_DB *db); static int do_updatedb(CA_DB *db); -static int check_time_format(char *str); +static int check_time_format(const char *str); char *make_revocation_str(int rev_type, char *rev_arg); int make_revoked(X509_REVOKED *rev, const char *str); int old_entry_print(BIO *bp, ASN1_OBJECT *obj, ASN1_STRING *str); @@ -895,7 +895,7 @@ bad: BIO_printf(bio_err," in entry %d\n", i+1); goto err; } - if (!check_time_format((char *)pp[DB_exp_date])) + if (!check_time_format(pp[DB_exp_date])) { BIO_printf(bio_err,"entry %d: invalid expiry date\n",i+1); goto err; @@ -2403,7 +2403,7 @@ static int fix_data(int nid, int *type) return(1); } -static int check_time_format(char *str) +static int check_time_format(const char *str) { ASN1_UTCTIME tm; |