aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1fix
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-08-19 13:28:31 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-08-19 13:28:31 +0000
commitfef925d79f4fa95545144048d007688c9d9ef17a (patch)
tree705985e9b3b51911b9b002a8055902c4de1db7cf /libasn1fix
parent53cd87bff8497e4c735b1c865ded9efaf4a75a96 (diff)
BMP, US and UTF ranges
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@146 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'libasn1fix')
-rw-r--r--libasn1fix/asn1fix_constraint_compat.c7
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: