From c16545915ab280e40eefc6bfb4e86d081f20c758 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 8 Oct 2018 15:46:50 -0400 Subject: [PATCH 25/25] Discards const qualifier --- src/dogtag.c | 3 ++- src/scep.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dogtag.c b/src/dogtag.c index 8e3890a5..962a8bf4 100644 --- a/src/dogtag.c +++ b/src/dogtag.c @@ -117,9 +117,10 @@ main(int argc, const char **argv) const char *ssldir = NULL, *cainfo = NULL, *capath = NULL; const char *sslcert = NULL, *sslkey = NULL; const char *sslpin = NULL, *sslpinfile = NULL; - const char *csr = NULL, *csre = NULL, *serial = NULL, *template = NULL; + const char *serial = NULL, *template = NULL; const char *uid = NULL, *pwd = NULL, *pwdfile = NULL; const char *udn = NULL, *pin = NULL, *pinfile = NULL; + char *csr = NULL, *csre = NULL; char *poptarg; struct { char *name; diff --git a/src/scep.c b/src/scep.c index b0bd214b..b37711cf 100644 --- a/src/scep.c +++ b/src/scep.c @@ -204,7 +204,8 @@ main(int argc, const char **argv) int prefer_non_renewal = 0, can_renewal = 0; int response_code = 0, response_code2 = 0; enum known_ops op = op_unset; - const char *id = NULL, *cainfo = NULL; + const char *id = NULL; + char *cainfo = NULL; char *poptarg; char *message = NULL, *rekey_message = NULL; const char *mode = NULL, *content_type = NULL, *content_type2 = NULL; -- 2.21.0