use const for the data
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 22 Nov 2012 18:44:16 +0000 (19:44 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 22 Nov 2012 18:44:16 +0000 (19:44 +0100)
lib/coding.c
lib/int.h

index 5d98fe4..0802f73 100644 (file)
@@ -429,7 +429,7 @@ _asn1_complete_explicit_tag (asn1_node node, unsigned char *der,
   return ASN1_SUCCESS;
 }
 
-tag_and_class_st _asn1_tags[] =
+const tag_and_class_st _asn1_tags[] =
 {
   [ASN1_ETYPE_GENERALSTRING] = {ASN1_TAG_GENERALSTRING, ASN1_CLASS_UNIVERSAL, "type:GENERALSTRING"},
   [ASN1_ETYPE_NUMERICSTRING] = {ASN1_TAG_NUMERICSTRING, ASN1_CLASS_UNIVERSAL, "type:NUMERIC_STR"},
index 0761025..70fa896 100644 (file)
--- a/lib/int.h
+++ b/lib/int.h
@@ -87,7 +87,7 @@ typedef struct tag_and_class_st {
        case ASN1_ETYPE_SET: \
        case ASN1_ETYPE_SET_OF
 
-extern tag_and_class_st _asn1_tags[];
+extern const tag_and_class_st _asn1_tags[];
 
 #define _asn1_strlen(s) strlen((const char *) s)
 #define _asn1_strtol(n,e,b) strtol((const char *) n, e, b)