diff options
Diffstat (limited to 'src/UTF8String.c')
-rw-r--r-- | src/UTF8String.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/UTF8String.c b/src/UTF8String.c index 7e73d77..4103af3 100644 --- a/src/UTF8String.c +++ b/src/UTF8String.c @@ -9,7 +9,7 @@ /* * UTF8String basic type description. */ -static ber_tlv_tag_t asn_DEF_UTF8String_tags[] = { +static const ber_tlv_tag_t asn_DEF_UTF8String_tags[] = { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), /* [UNIVERSAL 12] IMPLICIT ...*/ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), /* ... OCTET STRING */ }; @@ -25,6 +25,8 @@ asn_TYPE_descriptor_t asn_DEF_UTF8String = { OCTET_STRING_encode_xer_utf8, OCTET_STRING_decode_uper, OCTET_STRING_encode_uper, + OCTET_STRING_decode_aper, + OCTET_STRING_encode_aper, 0, /* Use generic outmost tag fetcher */ asn_DEF_UTF8String_tags, sizeof(asn_DEF_UTF8String_tags) @@ -41,7 +43,7 @@ asn_TYPE_descriptor_t asn_DEF_UTF8String = { * This is the table of length expectations. * The second half of this table is only applicable to the long sequences. */ -static int UTF8String_ht[2][16] = { +static const int UTF8String_ht[2][16] = { { /* 0x0 ... 0x7 */ /* 0000..0111 */ 1, 1, 1, 1, 1, 1, 1, 1, @@ -52,7 +54,7 @@ static int UTF8String_ht[2][16] = { 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, -1, -1 } }; -static int32_t UTF8String_mv[7] = { 0, 0, +static const int32_t UTF8String_mv[7] = { 0, 0, 0x00000080, 0x00000800, 0x00010000, |