diff options
author | Lev Walkin <vlm@lionet.info> | 2004-08-19 13:28:31 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2004-08-19 13:28:31 +0000 |
commit | cb636964c64d8ce5df19e8eaaa2026eae7273388 (patch) | |
tree | 705985e9b3b51911b9b002a8055902c4de1db7cf | |
parent | 5e975656edf82c036bb452baaa88fa9c1beb6069 (diff) |
BMP, US and UTF ranges
-rw-r--r-- | libasn1fix/asn1fix_constraint_compat.c | 7 |
1 files changed, 7 insertions, 0 deletions
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: |