Support 'BIT STRING (SIZE(42))' constructs, suggested by Cyril Holweck
authorSimon Josefsson <simon@josefsson.org>
Wed, 8 Mar 2006 13:16:53 +0000 (13:16 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 8 Mar 2006 13:16:53 +0000 (13:16 +0000)
<cyril.holweck@q-free.com>.

lib/ASN1.y

index 4e93f90..258d340 100644 (file)
@@ -257,6 +257,7 @@ bit_element_list :  bit_element   {$$=$1;}
 ;
 
 bit_string_def : BIT STRING    {$$=_asn1_add_node(TYPE_BIT_STRING);}
+               | BIT STRING size_def {$$=_asn1_add_node(TYPE_BIT_STRING|CONST_SIZE);}
                | BIT STRING'{'bit_element_list'}'
                                {$$=_asn1_add_node(TYPE_BIT_STRING|CONST_LIST);
                                 _asn1_set_down($$,$4);}