From fa3a84422dac112fa68eebb29d14df9c1d7acf00 Mon Sep 17 00:00:00 2001 From: FdaSilvaYY Date: Sun, 12 Jun 2016 11:17:50 +0200 Subject: Constify some input buffers in asn1 Reviewed-by: Kurt Roeckx Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1215) --- crypto/asn1/asn_moid.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crypto/asn1/asn_moid.c') diff --git a/crypto/asn1/asn_moid.c b/crypto/asn1/asn_moid.c index 9bffee62f7..8176b76008 100644 --- a/crypto/asn1/asn_moid.c +++ b/crypto/asn1/asn_moid.c @@ -18,7 +18,7 @@ /* Simple ASN1 OID module: add all objects in a given section */ -static int do_create(char *value, char *name); +static int do_create(const char *value, const char *name); static int oid_module_init(CONF_IMODULE *md, const CONF *cnf) { @@ -57,11 +57,12 @@ void ASN1_add_oid_module(void) * shortname = some long name, 1.2.3.4 */ -static int do_create(char *value, char *name) +static int do_create(const char *value, const char *name) { int nid; ASN1_OBJECT *oid; - char *ln, *ostr, *p, *lntmp; + const char *ln, *ostr, *p; + char *lntmp; p = strrchr(value, ','); if (!p) { ln = name; -- cgit v1.2.1