aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-04-23 13:45:49 +0000
committerNils Larsch <nils@openssl.org>2005-04-23 13:45:49 +0000
commit9edf4e81570f489080e0028bc348ec16adc4f42c (patch)
tree54e35b2ed5bc4eeb25d784bc1a4d81811d3a098a /crypto/asn1
parent965a1cb92e4774ca2f74dad9e060aa7b2d80c77d (diff)
downloadopenssl-9edf4e81570f489080e0028bc348ec16adc4f42c.zip
openssl-9edf4e81570f489080e0028bc348ec16adc4f42c.tar.gz
openssl-9edf4e81570f489080e0028bc348ec16adc4f42c.tar.bz2
make asn.1 field names const
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/asn1_gen.c2
-rw-r--r--crypto/asn1/asn1t.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/asn1_gen.c b/crypto/asn1/asn1_gen.c
index 4341e54..62ebe88 100644
--- a/crypto/asn1/asn1_gen.c
+++ b/crypto/asn1/asn1_gen.c
@@ -88,7 +88,7 @@
struct tag_name_st
{
- char *strnam;
+ const char *strnam;
int len;
int tag;
};
diff --git a/crypto/asn1/asn1t.h b/crypto/asn1/asn1t.h
index a024836..cc0cd1c 100644
--- a/crypto/asn1/asn1t.h
+++ b/crypto/asn1/asn1t.h
@@ -429,7 +429,7 @@ unsigned long flags; /* Various flags */
long tag; /* tag, not used if no tagging */
unsigned long offset; /* Offset of this field in structure */
#ifndef NO_ASN1_FIELD_NAMES
-char *field_name; /* Field name */
+const char *field_name; /* Field name */
#endif
ASN1_ITEM_EXP *item; /* Relevant ASN1_ITEM or ASN1_ADB */
};