make asn.1 field names const
authorNils Larsch <nils@openssl.org>
Sat, 23 Apr 2005 13:45:49 +0000 (13:45 +0000)
committerNils Larsch <nils@openssl.org>
Sat, 23 Apr 2005 13:45:49 +0000 (13:45 +0000)
crypto/asn1/asn1_gen.c
crypto/asn1/asn1t.h

index 4341e5415a9b21401fb1f12fad73c62dec461f7a..62ebe885927e4261e4f658eed80f3af89083319b 100644 (file)
@@ -88,7 +88,7 @@
 
 struct tag_name_st
        {
-       char *strnam;
+       const char *strnam;
        int len;
        int tag;
        };
index a0248368345634cee0aae5b71629af7e63c291b3..cc0cd1c8423b74c80d78184d007cbd1cb1c2bbb7 100644 (file)
@@ -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 */
 };