From cc69629626ce0dab934704e1d9e806e0823c87d0 Mon Sep 17 00:00:00 2001 From: FdaSilvaYY Date: Thu, 4 Aug 2016 23:52:22 +0200 Subject: Constify char* input parameters in apps code Reviewed-by: Rich Salz Reviewed-by: Matt Caswell --- apps/ocsp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/ocsp.c') diff --git a/apps/ocsp.c b/apps/ocsp.c index 5bd1acaf79..cfc06a9c43 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -194,7 +194,8 @@ int ocsp_main(int argc, char **argv) X509 *signer = NULL, *rsigner = NULL; X509_STORE *store = NULL; X509_VERIFY_PARAM *vpm = NULL; - char *CAfile = NULL, *CApath = NULL, *header, *value; + const char *CAfile = NULL, *CApath = NULL; + char *header, *value; char *host = NULL, *port = NULL, *path = "/", *outfile = NULL; char *rca_filename = NULL, *reqin = NULL, *respin = NULL; char *reqout = NULL, *respout = NULL, *ridx_filename = NULL; @@ -809,7 +810,7 @@ static void print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, long maxage) { OCSP_CERTID *id; - char *name; + const char *name; int i, status, reason; ASN1_GENERALIZEDTIME *rev, *thisupd, *nextupd; -- cgit v1.2.3