From cb636964c64d8ce5df19e8eaaa2026eae7273388 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Thu, 19 Aug 2004 13:28:31 +0000 Subject: [PATCH] BMP, US and UTF ranges --- libasn1fix/asn1fix_constraint_compat.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libasn1fix/asn1fix_constraint_compat.c b/libasn1fix/asn1fix_constraint_compat.c index 10720b5c..f2f47fd1 100644 --- a/libasn1fix/asn1fix_constraint_compat.c +++ b/libasn1fix/asn1fix_constraint_compat.c @@ -98,6 +98,8 @@ asn1cnst_range_t * asn1constraint_default_alphabet(asn1p_expr_type_e expr_type) { DECL(uint7, 0x00, 0x7f); DECL(uint8, 0x00, 0xff); + DECL(uint16, 0x00, 0xffff); + DECL(uint31, 0x00, 0x7fffffff); DECL(Space, 0x20, 0x20); DECL(ApostropheAndParens, 0x27, 0x29); DECL(PlusTillColon, 0x2b, 0x3a); @@ -169,6 +171,11 @@ asn1constraint_default_alphabet(asn1p_expr_type_e expr_type) { return &range_uint7; case ASN_BASIC_OCTET_STRING: return &range_uint8; + case ASN_STRING_BMPString: + return &range_uint16; + case ASN_STRING_UniversalString: + case ASN_STRING_UTF8String: + return &range_uint31; case ASN_BASIC_UTCTime: return &range_UTCTime; case ASN_BASIC_GeneralizedTime: