summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/coding.c2
-rw-r--r--lib/int.h2
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"},
diff --git a/lib/int.h b/lib/int.h
index 0761025..70fa896 100644
--- 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)