summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-03-16 20:59:10 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-03-16 20:59:10 +0000
commit7c337e00d23ac421ff1949ac1bbce2e8b718299e (patch)
tree3a7976f3d6a98d1273170ec17feda7db109a40a6 /apps
parent7e8481afd12c596b5c905596d6facae60834854a (diff)
Fix some warnings.
Diffstat (limited to 'apps')
-rw-r--r--apps/ca.c4
-rw-r--r--apps/cms.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 291f16487a..b6d871dcb9 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -226,7 +226,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);
@@ -2384,7 +2384,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;
diff --git a/apps/cms.c b/apps/cms.c
index b757908070..eb54a0d623 100644
--- a/apps/cms.c
+++ b/apps/cms.c
@@ -124,7 +124,7 @@ int MAIN(int argc, char **argv)
char *engine=NULL;
#endif
unsigned char *secret_key = NULL;
- size_t secret_keylen;
+ size_t secret_keylen = 0;
X509_VERIFY_PARAM *vpm = NULL;