From 5c6f8d0ea9d284b69c46dcfdf37e8abf719cda93 Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 15 Feb 2006 08:10:45 +0000 Subject: [PATCH] fix warnings git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2846 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/tools/piv-tool.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tools/piv-tool.c b/src/tools/piv-tool.c index d6a013ca..8b13d79f 100644 --- a/src/tools/piv-tool.c +++ b/src/tools/piv-tool.c @@ -94,7 +94,7 @@ BIO * bp = NULL; RSA * newkey = NULL; -static int load_cert(char * cert_id, char * cert_file) +static int load_cert(const char * cert_id, const char * cert_file) { X509 * cert = NULL; FILE *fp; @@ -147,7 +147,7 @@ static int load_cert(char * cert_id, char * cert_file) return r; } -static int admin_mode(char* admin_info) +static int admin_mode(const char* admin_info) { int r; u8 opts[3]; @@ -172,15 +172,17 @@ static int admin_mode(char* admin_info) return r; } +#if 0 /* generate a req using xxx as subject */ static int req() { fprintf(stderr, "Not Implemented yet\n"); return -1; } +#endif /* generate a new key pair, and save public key in newkey */ -static int gen_key(char * key_info) +static int gen_key(const char * key_info) { int r; u8 buf[2]; @@ -421,7 +423,7 @@ int main(int argc, char * const argv[]) if (out_file) { bp = BIO_new(BIO_s_file()); - BIO_write_filename(bp, out_file); + BIO_write_filename(bp, (char *)out_file); } else { bp = BIO_new(BIO_s_file()); BIO_set_fp(bp,stdout,BIO_NOCLOSE);