diff options
-rw-r--r-- | lib/coding.c | 2 | ||||
-rw-r--r-- | lib/int.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/coding.c b/lib/coding.c index 5d98fe4..0802f73 100644 --- a/lib/coding.c +++ b/lib/coding.c @@ -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"}, @@ -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) |