summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-02-01 16:25:10 +0100
committerSimon Josefsson <simon@josefsson.org>2008-02-01 16:25:10 +0100
commitfe461c074c36a94010c652eee579d20db78961f4 (patch)
tree0e615e1142d42e8efc93b2c78a2bf62b0193c79c /lib
parent929152475df73cac7000c6e379bfd5631e5f4a8b (diff)
downloadlibtasn1-fe461c074c36a94010c652eee579d20db78961f4.tar.gz
libtasn1-fe461c074c36a94010c652eee579d20db78961f4.tar.bz2
libtasn1-fe461c074c36a94010c652eee579d20db78961f4.zip
Handle 'INTEGER { ...} (a..b)', as used by src/pkix.asn1.
Reverts part of Fabio's patch on Sep 18 2003.
Diffstat (limited to 'lib')
-rw-r--r--lib/ASN1.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ASN1.y b/lib/ASN1.y
index 258d340..33e7bb3 100644
--- a/lib/ASN1.y
+++ b/lib/ASN1.y
@@ -209,8 +209,8 @@ pos_neg_list: pos_neg_num
integer_def: INTEGER {$$=_asn1_add_node(TYPE_INTEGER);}
| INTEGER'{'constant_list'}' {$$=_asn1_add_node(TYPE_INTEGER|CONST_LIST);
_asn1_set_down($$,$3);}
- | INTEGER'(' pos_neg_list ')' {$$=_asn1_add_node(TYPE_INTEGER);}
- | INTEGER'('num_identifier'.''.'num_identifier')'
+ | integer_def'(' pos_neg_list ')' {$$=_asn1_add_node(TYPE_INTEGER);}
+ | integer_def'('num_identifier'.''.'num_identifier')'
{$$=_asn1_add_node(TYPE_INTEGER|CONST_MIN_MAX);
_asn1_set_down($$,_asn1_add_node(TYPE_SIZE));
_asn1_set_value(_asn1_get_down($$),$6,strlen($6)+1);