diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-02-01 16:25:10 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-02-01 16:25:10 +0100 |
commit | fe461c074c36a94010c652eee579d20db78961f4 (patch) | |
tree | 0e615e1142d42e8efc93b2c78a2bf62b0193c79c /lib/ASN1.y | |
parent | 929152475df73cac7000c6e379bfd5631e5f4a8b (diff) | |
download | libtasn1-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/ASN1.y')
-rw-r--r-- | lib/ASN1.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |