mirror of
https://github.com/wader/fq.git
synced 2024-12-23 21:31:33 +03:00
asn1_ber,goreleaser: Convert CRLF to LF in asn1 xml tests, hopefully fixes goreleaer workspace dirty error
This commit is contained in:
parent
1d369bcfab
commit
0326eeb697
38
format/asn1/testdata/tc1.xml
vendored
38
format/asn1/testdata/tc1.xml
vendored
@ -1,19 +1,19 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ASN1_TYPE>
|
<ASN1_TYPE>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Tag too long, represented as hex-coded</warning>
|
<warning>Tag too long, represented as hex-coded</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>1</length>
|
<length>1</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<value_hex>40</value_hex>
|
<value_hex>40</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</ASN1_TYPE>
|
</ASN1_TYPE>
|
||||||
|
68
format/asn1/testdata/tc10.xml
vendored
68
format/asn1/testdata/tc10.xml
vendored
@ -1,34 +1,34 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>7</length>
|
<length>7</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<information_block>
|
<information_block>
|
||||||
<is_special_value>false</is_special_value>
|
<is_special_value>false</is_special_value>
|
||||||
<base>2</base>
|
<base>2</base>
|
||||||
<scaling_factor>0</scaling_factor>
|
<scaling_factor>0</scaling_factor>
|
||||||
<is_negative>false</is_negative>
|
<is_negative>false</is_negative>
|
||||||
<exponent_format>4</exponent_format>
|
<exponent_format>4</exponent_format>
|
||||||
</information_block>
|
</information_block>
|
||||||
<exponent_block>
|
<exponent_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long format</warning>
|
<warning>Needlessly long format</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>-5</value_dec>
|
<value_dec>-5</value_dec>
|
||||||
</exponent_block>
|
</exponent_block>
|
||||||
<mantissa_block>
|
<mantissa_block>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>5</value_dec>
|
<value_dec>5</value_dec>
|
||||||
</mantissa_block>
|
</mantissa_block>
|
||||||
<value_dec>0.156250</value_dec>
|
<value_dec>0.156250</value_dec>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
40
format/asn1/testdata/tc11.xml
vendored
40
format/asn1/testdata/tc11.xml
vendored
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<error>Wrong NR form</error>
|
<error>Wrong NR form</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>9</length>
|
<length>9</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>Wrong NR form</error>
|
<error>Wrong NR form</error>
|
||||||
<information_block>
|
<information_block>
|
||||||
<error>Wrong NR form</error>
|
<error>Wrong NR form</error>
|
||||||
</information_block>
|
</information_block>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
40
format/asn1/testdata/tc12.xml
vendored
40
format/asn1/testdata/tc12.xml
vendored
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<error>Unknown special REAL value</error>
|
<error>Unknown special REAL value</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>1</length>
|
<length>1</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>Unknown special REAL value</error>
|
<error>Unknown special REAL value</error>
|
||||||
<information_block>
|
<information_block>
|
||||||
<error>Unknown special REAL value</error>
|
<error>Unknown special REAL value</error>
|
||||||
</information_block>
|
</information_block>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
76
format/asn1/testdata/tc13.xml
vendored
76
format/asn1/testdata/tc13.xml
vendored
@ -1,38 +1,38 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long encoded length</warning>
|
<warning>Needlessly long encoded length</warning>
|
||||||
<warning>Unneccesary usage of long length form</warning>
|
<warning>Unneccesary usage of long length form</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>true</long_form_used>
|
<long_form_used>true</long_form_used>
|
||||||
<length>7</length>
|
<length>7</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<information_block>
|
<information_block>
|
||||||
<is_special_value>false</is_special_value>
|
<is_special_value>false</is_special_value>
|
||||||
<base>2</base>
|
<base>2</base>
|
||||||
<scaling_factor>0</scaling_factor>
|
<scaling_factor>0</scaling_factor>
|
||||||
<is_negative>false</is_negative>
|
<is_negative>false</is_negative>
|
||||||
<exponent_format>4</exponent_format>
|
<exponent_format>4</exponent_format>
|
||||||
</information_block>
|
</information_block>
|
||||||
<exponent_block>
|
<exponent_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long format</warning>
|
<warning>Needlessly long format</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>-5</value_dec>
|
<value_dec>-5</value_dec>
|
||||||
</exponent_block>
|
</exponent_block>
|
||||||
<mantissa_block>
|
<mantissa_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</mantissa_block>
|
</mantissa_block>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
62
format/asn1/testdata/tc14.xml
vendored
62
format/asn1/testdata/tc14.xml
vendored
@ -1,31 +1,31 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long encoded length</warning>
|
<warning>Needlessly long encoded length</warning>
|
||||||
<warning>Unneccesary usage of long length form</warning>
|
<warning>Unneccesary usage of long length form</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>true</long_form_used>
|
<long_form_used>true</long_form_used>
|
||||||
<length>7</length>
|
<length>7</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<information_block>
|
<information_block>
|
||||||
<is_special_value>false</is_special_value>
|
<is_special_value>false</is_special_value>
|
||||||
<base>2</base>
|
<base>2</base>
|
||||||
<scaling_factor>0</scaling_factor>
|
<scaling_factor>0</scaling_factor>
|
||||||
<is_negative>false</is_negative>
|
<is_negative>false</is_negative>
|
||||||
<exponent_format>4</exponent_format>
|
<exponent_format>4</exponent_format>
|
||||||
</information_block>
|
</information_block>
|
||||||
<exponent_block>
|
<exponent_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</exponent_block>
|
</exponent_block>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
68
format/asn1/testdata/tc15.xml
vendored
68
format/asn1/testdata/tc15.xml
vendored
@ -1,34 +1,34 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>12</length>
|
<length>12</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<information_block>
|
<information_block>
|
||||||
<is_special_value>false</is_special_value>
|
<is_special_value>false</is_special_value>
|
||||||
<base>2</base>
|
<base>2</base>
|
||||||
<scaling_factor>0</scaling_factor>
|
<scaling_factor>0</scaling_factor>
|
||||||
<is_negative>false</is_negative>
|
<is_negative>false</is_negative>
|
||||||
<exponent_format>4</exponent_format>
|
<exponent_format>4</exponent_format>
|
||||||
</information_block>
|
</information_block>
|
||||||
<exponent_block>
|
<exponent_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Too big REAL exponent block for decoding, hex only</warning>
|
<warning>Too big REAL exponent block for decoding, hex only</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_hex_only>true</is_hex_only>
|
<is_hex_only>true</is_hex_only>
|
||||||
<value_hex>09 7F FF FF FF FF FF FF FF FB</value_hex>
|
<value_hex>09 7F FF FF FF FF FF FF FF FB</value_hex>
|
||||||
</exponent_block>
|
</exponent_block>
|
||||||
<mantissa_block>
|
<mantissa_block>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>5</value_dec>
|
<value_dec>5</value_dec>
|
||||||
</mantissa_block>
|
</mantissa_block>
|
||||||
<value_hex>5 * 2^{09 7F FF FF FF FF FF FF FF FB}</value_hex>
|
<value_hex>5 * 2^{09 7F FF FF FF FF FF FF FF FB}</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
68
format/asn1/testdata/tc16.xml
vendored
68
format/asn1/testdata/tc16.xml
vendored
@ -1,34 +1,34 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>12</length>
|
<length>12</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<information_block>
|
<information_block>
|
||||||
<is_special_value>false</is_special_value>
|
<is_special_value>false</is_special_value>
|
||||||
<base>2</base>
|
<base>2</base>
|
||||||
<scaling_factor>0</scaling_factor>
|
<scaling_factor>0</scaling_factor>
|
||||||
<is_negative>false</is_negative>
|
<is_negative>false</is_negative>
|
||||||
<exponent_format>1</exponent_format>
|
<exponent_format>1</exponent_format>
|
||||||
</information_block>
|
</information_block>
|
||||||
<exponent_block>
|
<exponent_block>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>-5</value_dec>
|
<value_dec>-5</value_dec>
|
||||||
</exponent_block>
|
</exponent_block>
|
||||||
<mantissa_block>
|
<mantissa_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Too big REAL mantissa for decoding, hex only</warning>
|
<warning>Too big REAL mantissa for decoding, hex only</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_hex_only>true</is_hex_only>
|
<is_hex_only>true</is_hex_only>
|
||||||
<value_hex>05 05 05 05 05 05 05 05 05 05</value_hex>
|
<value_hex>05 05 05 05 05 05 05 05 05 05</value_hex>
|
||||||
</mantissa_block>
|
</mantissa_block>
|
||||||
<value_hex>{05 05 05 05 05 05 05 05 05 05} * 2^-5</value_hex>
|
<value_hex>{05 05 05 05 05 05 05 05 05 05} * 2^-5</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
74
format/asn1/testdata/tc17.xml
vendored
74
format/asn1/testdata/tc17.xml
vendored
@ -1,37 +1,37 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>20</length>
|
<length>20</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<information_block>
|
<information_block>
|
||||||
<is_special_value>false</is_special_value>
|
<is_special_value>false</is_special_value>
|
||||||
<base>16</base>
|
<base>16</base>
|
||||||
<scaling_factor>3</scaling_factor>
|
<scaling_factor>3</scaling_factor>
|
||||||
<is_negative>false</is_negative>
|
<is_negative>false</is_negative>
|
||||||
<exponent_format>4</exponent_format>
|
<exponent_format>4</exponent_format>
|
||||||
</information_block>
|
</information_block>
|
||||||
<exponent_block>
|
<exponent_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Too big REAL exponent block for decoding, hex only</warning>
|
<warning>Too big REAL exponent block for decoding, hex only</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_hex_only>true</is_hex_only>
|
<is_hex_only>true</is_hex_only>
|
||||||
<value_hex>09 FE FF FF FF FF FF FF FF FF</value_hex>
|
<value_hex>09 FE FF FF FF FF FF FF FF FF</value_hex>
|
||||||
</exponent_block>
|
</exponent_block>
|
||||||
<mantissa_block>
|
<mantissa_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Too big REAL mantissa for decoding, hex only</warning>
|
<warning>Too big REAL mantissa for decoding, hex only</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_hex_only>true</is_hex_only>
|
<is_hex_only>true</is_hex_only>
|
||||||
<value_hex>05 05 05 05 05 05 05 05 05</value_hex>
|
<value_hex>05 05 05 05 05 05 05 05 05</value_hex>
|
||||||
</mantissa_block>
|
</mantissa_block>
|
||||||
<value_hex>{05 05 05 05 05 05 05 05 05} * 16^{09 FE FF FF FF FF FF FF FF FF} * 2^3</value_hex>
|
<value_hex>{05 05 05 05 05 05 05 05 05} * 16^{09 FE FF FF FF FF FF FF FF FF} * 2^3</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
38
format/asn1/testdata/tc18.xml
vendored
38
format/asn1/testdata/tc18.xml
vendored
@ -1,19 +1,19 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<INTEGER>
|
<INTEGER>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>2</value_dec>
|
<value_dec>2</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long format</warning>
|
<warning>Needlessly long format</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<value_dec>-4095</value_dec>
|
<value_dec>-4095</value_dec>
|
||||||
</value_block>
|
</value_block>
|
||||||
</INTEGER>
|
</INTEGER>
|
||||||
|
34
format/asn1/testdata/tc19.xml
vendored
34
format/asn1/testdata/tc19.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<INTEGER>
|
<INTEGER>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>2</value_dec>
|
<value_dec>2</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>1</length>
|
<length>1</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</INTEGER>
|
</INTEGER>
|
||||||
|
14
format/asn1/testdata/tc2.xml
vendored
14
format/asn1/testdata/tc2.xml
vendored
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ASN1_TYPE>
|
<ASN1_TYPE>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
</ASN1_TYPE>
|
</ASN1_TYPE>
|
||||||
|
38
format/asn1/testdata/tc20.xml
vendored
38
format/asn1/testdata/tc20.xml
vendored
@ -1,19 +1,19 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<INTEGER>
|
<INTEGER>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>2</value_dec>
|
<value_dec>2</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>9</length>
|
<length>9</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Too big REAL for decoding, hex only</warning>
|
<warning>Too big REAL for decoding, hex only</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<value_hex>80 00 01 01 01 01 01 01 01</value_hex>
|
<value_hex>80 00 01 01 01 01 01 01 01</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</INTEGER>
|
</INTEGER>
|
||||||
|
70
format/asn1/testdata/tc21.xml
vendored
70
format/asn1/testdata/tc21.xml
vendored
@ -1,35 +1,35 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OBJECT_IDENTIFIER>
|
<OBJECT_IDENTIFIER>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>6</value_dec>
|
<value_dec>6</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>6</length>
|
<length>6</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<sid_blocks>
|
<sid_blocks>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long format of SID encoding</warning>
|
<warning>Needlessly long format of SID encoding</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_first_sid>true</is_first_sid>
|
<is_first_sid>true</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>81</value_dec>
|
<value_dec>81</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long format of SID encoding</warning>
|
<warning>Needlessly long format of SID encoding</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>1</value_dec>
|
<value_dec>1</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
</sid_blocks>
|
</sid_blocks>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>2.1.1</value_dec>
|
<value_dec>2.1.1</value_dec>
|
||||||
</value_block>
|
</value_block>
|
||||||
</OBJECT_IDENTIFIER>
|
</OBJECT_IDENTIFIER>
|
||||||
|
94
format/asn1/testdata/tc22.xml
vendored
94
format/asn1/testdata/tc22.xml
vendored
@ -1,47 +1,47 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OBJECT_IDENTIFIER>
|
<OBJECT_IDENTIFIER>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>6</value_dec>
|
<value_dec>6</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>16</length>
|
<length>16</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<sid_blocks>
|
<sid_blocks>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Too big SID for decoding, hex only</warning>
|
<warning>Too big SID for decoding, hex only</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_first_sid>true</is_first_sid>
|
<is_first_sid>true</is_first_sid>
|
||||||
<is_hex_only>true</is_hex_only>
|
<is_hex_only>true</is_hex_only>
|
||||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 0F</value_hex>
|
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 0F</value_hex>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>643</value_dec>
|
<value_dec>643</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>2</value_dec>
|
<value_dec>2</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>2</value_dec>
|
<value_dec>2</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
</sid_blocks>
|
</sid_blocks>
|
||||||
<is_hex_only>true</is_hex_only>
|
<is_hex_only>true</is_hex_only>
|
||||||
<value_dec>2.{{7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 0F} - 80}.643.2.2.3</value_dec>
|
<value_dec>2.{{7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 0F} - 80}.643.2.2.3</value_dec>
|
||||||
</value_block>
|
</value_block>
|
||||||
</OBJECT_IDENTIFIER>
|
</OBJECT_IDENTIFIER>
|
||||||
|
34
format/asn1/testdata/tc23.xml
vendored
34
format/asn1/testdata/tc23.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OBJECT_IDENTIFIER>
|
<OBJECT_IDENTIFIER>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>6</value_dec>
|
<value_dec>6</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>17</length>
|
<length>17</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</OBJECT_IDENTIFIER>
|
</OBJECT_IDENTIFIER>
|
||||||
|
128
format/asn1/testdata/tc24.xml
vendored
128
format/asn1/testdata/tc24.xml
vendored
@ -1,64 +1,64 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OBJECT_IDENTIFIER>
|
<OBJECT_IDENTIFIER>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>6</value_dec>
|
<value_dec>6</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>21</length>
|
<length>21</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<sid_blocks>
|
<sid_blocks>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>true</is_first_sid>
|
<is_first_sid>true</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>10080</value_dec>
|
<value_dec>10080</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>840</value_dec>
|
<value_dec>840</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>135119</value_dec>
|
<value_dec>135119</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>2</value_dec>
|
<value_dec>2</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>12301002</value_dec>
|
<value_dec>12301002</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>12132323</value_dec>
|
<value_dec>12132323</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>191919</value_dec>
|
<value_dec>191919</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
<sid_block>
|
<sid_block>
|
||||||
<is_first_sid>false</is_first_sid>
|
<is_first_sid>false</is_first_sid>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>2</value_dec>
|
<value_dec>2</value_dec>
|
||||||
</sid_block>
|
</sid_block>
|
||||||
</sid_blocks>
|
</sid_blocks>
|
||||||
<is_hex_only>false</is_hex_only>
|
<is_hex_only>false</is_hex_only>
|
||||||
<value_dec>2.10000.840.135119.9.2.12301002.12132323.191919.2</value_dec>
|
<value_dec>2.10000.840.135119.9.2.12301002.12132323.191919.2</value_dec>
|
||||||
</value_block>
|
</value_block>
|
||||||
</OBJECT_IDENTIFIER>
|
</OBJECT_IDENTIFIER>
|
||||||
|
40
format/asn1/testdata/tc25.xml
vendored
40
format/asn1/testdata/tc25.xml
vendored
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BOOLEAN>
|
<BOOLEAN>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>1</value_dec>
|
<value_dec>1</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long format</warning>
|
<warning>Needlessly long format</warning>
|
||||||
<warning>BOOLEAN value encoded in more then 1 octet</warning>
|
<warning>BOOLEAN value encoded in more then 1 octet</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<value_hex>00 00 00</value_hex>
|
<value_hex>00 00 00</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BOOLEAN>
|
</BOOLEAN>
|
||||||
|
40
format/asn1/testdata/tc26.xml
vendored
40
format/asn1/testdata/tc26.xml
vendored
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BOOLEAN>
|
<BOOLEAN>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>1</value_dec>
|
<value_dec>1</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Needlessly long format</warning>
|
<warning>Needlessly long format</warning>
|
||||||
<warning>BOOLEAN value encoded in more then 1 octet</warning>
|
<warning>BOOLEAN value encoded in more then 1 octet</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<value_hex>00 00 01</value_hex>
|
<value_hex>00 00 01</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BOOLEAN>
|
</BOOLEAN>
|
||||||
|
34
format/asn1/testdata/tc27.xml
vendored
34
format/asn1/testdata/tc27.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BOOLEAN>
|
<BOOLEAN>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>1</value_dec>
|
<value_dec>1</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BOOLEAN>
|
</BOOLEAN>
|
||||||
|
32
format/asn1/testdata/tc28.xml
vendored
32
format/asn1/testdata/tc28.xml
vendored
@ -1,16 +1,16 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BOOLEAN>
|
<BOOLEAN>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>1</value_dec>
|
<value_dec>1</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>1</length>
|
<length>1</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<value_hex>FF</value_hex>
|
<value_hex>FF</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BOOLEAN>
|
</BOOLEAN>
|
||||||
|
32
format/asn1/testdata/tc29.xml
vendored
32
format/asn1/testdata/tc29.xml
vendored
@ -1,16 +1,16 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BOOLEAN>
|
<BOOLEAN>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>1</value_dec>
|
<value_dec>1</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>1</length>
|
<length>1</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<value_hex>00</value_hex>
|
<value_hex>00</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BOOLEAN>
|
</BOOLEAN>
|
||||||
|
30
format/asn1/testdata/tc3.xml
vendored
30
format/asn1/testdata/tc3.xml
vendored
@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ASN1_TYPE>
|
<ASN1_TYPE>
|
||||||
<error>No length block encoded</error>
|
<error>No length block encoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Tag too long, represented as hex-coded</warning>
|
<warning>Tag too long, represented as hex-coded</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<error>No length block encoded</error>
|
<error>No length block encoded</error>
|
||||||
</length_block>
|
</length_block>
|
||||||
</ASN1_TYPE>
|
</ASN1_TYPE>
|
||||||
|
36
format/asn1/testdata/tc30.xml
vendored
36
format/asn1/testdata/tc30.xml
vendored
@ -1,18 +1,18 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<NULL>
|
<NULL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>5</value_dec>
|
<value_dec>5</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Non-zero length of value block for NULL type</warning>
|
<warning>Non-zero length of value block for NULL type</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
</value_block>
|
</value_block>
|
||||||
</NULL>
|
</NULL>
|
||||||
|
40
format/asn1/testdata/tc31.xml
vendored
40
format/asn1/testdata/tc31.xml
vendored
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<NULL>
|
<NULL>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>5</value_dec>
|
<value_dec>5</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Non-zero length of value block for NULL type</warning>
|
<warning>Non-zero length of value block for NULL type</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</NULL>
|
</NULL>
|
||||||
|
28
format/asn1/testdata/tc32.xml
vendored
28
format/asn1/testdata/tc32.xml
vendored
@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<NULL>
|
<NULL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>5</value_dec>
|
<value_dec>5</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block></value_block>
|
<value_block></value_block>
|
||||||
</NULL>
|
</NULL>
|
||||||
|
34
format/asn1/testdata/tc33.xml
vendored
34
format/asn1/testdata/tc33.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>2</length>
|
<length>2</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
34
format/asn1/testdata/tc34.xml
vendored
34
format/asn1/testdata/tc34.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>2</length>
|
<length>2</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
34
format/asn1/testdata/tc35.xml
vendored
34
format/asn1/testdata/tc35.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<error>BIT STRING may consists of BIT STRINGs only</error>
|
<error>BIT STRING may consists of BIT STRINGs only</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>true</is_indefinite_form>
|
<is_indefinite_form>true</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>BIT STRING may consists of BIT STRINGs only</error>
|
<error>BIT STRING may consists of BIT STRINGs only</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
34
format/asn1/testdata/tc36.xml
vendored
34
format/asn1/testdata/tc36.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<error>Usign of "unused bits" inside constructive BIT STRING allowed for least one only</error>
|
<error>Usign of "unused bits" inside constructive BIT STRING allowed for least one only</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>true</is_indefinite_form>
|
<is_indefinite_form>true</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>Usign of "unused bits" inside constructive BIT STRING allowed for least one only</error>
|
<error>Usign of "unused bits" inside constructive BIT STRING allowed for least one only</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
126
format/asn1/testdata/tc37.xml
vendored
126
format/asn1/testdata/tc37.xml
vendored
@ -1,63 +1,63 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>12</length>
|
<length>12</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>2</length>
|
<length>2</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<unused_bits>0</unused_bits>
|
<unused_bits>0</unused_bits>
|
||||||
<value_hex>0000 0001</value_hex>
|
<value_hex>0000 0001</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>2</length>
|
<length>2</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<unused_bits>0</unused_bits>
|
<unused_bits>0</unused_bits>
|
||||||
<value_hex>0000 0001</value_hex>
|
<value_hex>0000 0001</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>2</length>
|
<length>2</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<unused_bits>4</unused_bits>
|
<unused_bits>4</unused_bits>
|
||||||
<value_hex>0000 1111</value_hex>
|
<value_hex>0000 1111</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
94
format/asn1/testdata/tc38.xml
vendored
94
format/asn1/testdata/tc38.xml
vendored
@ -1,47 +1,47 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>true</is_indefinite_form>
|
<is_indefinite_form>true</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<unused_bits>0</unused_bits>
|
<unused_bits>0</unused_bits>
|
||||||
<value_hex>0000 1010 0011 1011</value_hex>
|
<value_hex>0000 1010 0011 1011</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>5</length>
|
<length>5</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<unused_bits>4</unused_bits>
|
<unused_bits>4</unused_bits>
|
||||||
<value_hex>0101 1111 0010 1001 0001 1100 1101 0000</value_hex>
|
<value_hex>0101 1111 0010 1001 0001 1100 1101 0000</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
28
format/asn1/testdata/tc39.xml
vendored
28
format/asn1/testdata/tc39.xml
vendored
@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block></value_block>
|
<value_block></value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
30
format/asn1/testdata/tc4.xml
vendored
30
format/asn1/testdata/tc4.xml
vendored
@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ASN1_TYPE>
|
<ASN1_TYPE>
|
||||||
<error>Length block 0xFF is reserved by standard</error>
|
<error>Length block 0xFF is reserved by standard</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Tag too long, represented as hex-coded</warning>
|
<warning>Tag too long, represented as hex-coded</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<error>Length block 0xFF is reserved by standard</error>
|
<error>Length block 0xFF is reserved by standard</error>
|
||||||
</length_block>
|
</length_block>
|
||||||
</ASN1_TYPE>
|
</ASN1_TYPE>
|
||||||
|
28
format/asn1/testdata/tc40.xml
vendored
28
format/asn1/testdata/tc40.xml
vendored
@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block></value_block>
|
<value_block></value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
34
format/asn1/testdata/tc41.xml
vendored
34
format/asn1/testdata/tc41.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OCTET_STRING>
|
<OCTET_STRING>
|
||||||
<error>OCTET STRING may consists of OCTET STRINGs only</error>
|
<error>OCTET STRING may consists of OCTET STRINGs only</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>4</value_dec>
|
<value_dec>4</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>true</is_indefinite_form>
|
<is_indefinite_form>true</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>OCTET STRING may consists of OCTET STRINGs only</error>
|
<error>OCTET STRING may consists of OCTET STRINGs only</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</OCTET_STRING>
|
</OCTET_STRING>
|
||||||
|
34
format/asn1/testdata/tc42.xml
vendored
34
format/asn1/testdata/tc42.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OCTET_STRING>
|
<OCTET_STRING>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>4</value_dec>
|
<value_dec>4</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>true</is_indefinite_form>
|
<is_indefinite_form>true</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</OCTET_STRING>
|
</OCTET_STRING>
|
||||||
|
34
format/asn1/testdata/tc43.xml
vendored
34
format/asn1/testdata/tc43.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OCTET_STRING>
|
<OCTET_STRING>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>4</value_dec>
|
<value_dec>4</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>End of input reached before message was fully decoded</error>
|
<error>End of input reached before message was fully decoded</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</OCTET_STRING>
|
</OCTET_STRING>
|
||||||
|
28
format/asn1/testdata/tc44.xml
vendored
28
format/asn1/testdata/tc44.xml
vendored
@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OCTET_STRING>
|
<OCTET_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>4</value_dec>
|
<value_dec>4</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block></value_block>
|
<value_block></value_block>
|
||||||
</OCTET_STRING>
|
</OCTET_STRING>
|
||||||
|
28
format/asn1/testdata/tc45.xml
vendored
28
format/asn1/testdata/tc45.xml
vendored
@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<OCTET_STRING>
|
<OCTET_STRING>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>4</value_dec>
|
<value_dec>4</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block></value_block>
|
<value_block></value_block>
|
||||||
</OCTET_STRING>
|
</OCTET_STRING>
|
||||||
|
28
format/asn1/testdata/tc46.xml
vendored
28
format/asn1/testdata/tc46.xml
vendored
@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ASN1_TYPE>
|
<ASN1_TYPE>
|
||||||
<error>Indefinite length form used for primitive encoding form</error>
|
<error>Indefinite length form used for primitive encoding form</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>true</is_indefinite_form>
|
<is_indefinite_form>true</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
</ASN1_TYPE>
|
</ASN1_TYPE>
|
||||||
|
34
format/asn1/testdata/tc47.xml
vendored
34
format/asn1/testdata/tc47.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<error>EOC is unexpected, BIT STRING may consists of BIT STRINGs only</error>
|
<error>EOC is unexpected, BIT STRING may consists of BIT STRINGs only</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>14</length>
|
<length>14</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>EOC is unexpected, BIT STRING may consists of BIT STRINGs only</error>
|
<error>EOC is unexpected, BIT STRING may consists of BIT STRINGs only</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
34
format/asn1/testdata/tc48.xml
vendored
34
format/asn1/testdata/tc48.xml
vendored
@ -1,17 +1,17 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<BIT_STRING>
|
<BIT_STRING>
|
||||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>true</is_constructed>
|
<is_constructed>true</is_constructed>
|
||||||
<value_dec>3</value_dec>
|
<value_dec>3</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>true</is_indefinite_form>
|
<is_indefinite_form>true</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>0</length>
|
<length>0</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||||
</value_block>
|
</value_block>
|
||||||
</BIT_STRING>
|
</BIT_STRING>
|
||||||
|
44
format/asn1/testdata/tc5.xml
vendored
44
format/asn1/testdata/tc5.xml
vendored
@ -1,22 +1,22 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ASN1_TYPE>
|
<ASN1_TYPE>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Tag too long, represented as hex-coded</warning>
|
<warning>Tag too long, represented as hex-coded</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Unneccesary usage of long length form</warning>
|
<warning>Unneccesary usage of long length form</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>true</long_form_used>
|
<long_form_used>true</long_form_used>
|
||||||
<length>1</length>
|
<length>1</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<value_hex>40</value_hex>
|
<value_hex>40</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</ASN1_TYPE>
|
</ASN1_TYPE>
|
||||||
|
56
format/asn1/testdata/tc6.xml
vendored
56
format/asn1/testdata/tc6.xml
vendored
@ -1,28 +1,28 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>7</length>
|
<length>7</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>REAL values for +0 and -0 can not be encoded in decimal format</warning>
|
<warning>REAL values for +0 and -0 can not be encoded in decimal format</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<information_block>
|
<information_block>
|
||||||
<is_special_value>false</is_special_value>
|
<is_special_value>false</is_special_value>
|
||||||
<base>10</base>
|
<base>10</base>
|
||||||
<NR_form>3</NR_form>
|
<NR_form>3</NR_form>
|
||||||
</information_block>
|
</information_block>
|
||||||
<mantissa_block>
|
<mantissa_block>
|
||||||
<is_hex_only>true</is_hex_only>
|
<is_hex_only>true</is_hex_only>
|
||||||
<value_hex>2B 2E 45 2D 35</value_hex>
|
<value_hex>2B 2E 45 2D 35</value_hex>
|
||||||
</mantissa_block>
|
</mantissa_block>
|
||||||
<value_hex>+.E-5</value_hex>
|
<value_hex>+.E-5</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
56
format/asn1/testdata/tc7.xml
vendored
56
format/asn1/testdata/tc7.xml
vendored
@ -1,28 +1,28 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>7</length>
|
<length>7</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>REAL values for +0 and -0 can not be encoded in decimal format</warning>
|
<warning>REAL values for +0 and -0 can not be encoded in decimal format</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<information_block>
|
<information_block>
|
||||||
<is_special_value>false</is_special_value>
|
<is_special_value>false</is_special_value>
|
||||||
<base>10</base>
|
<base>10</base>
|
||||||
<NR_form>3</NR_form>
|
<NR_form>3</NR_form>
|
||||||
</information_block>
|
</information_block>
|
||||||
<mantissa_block>
|
<mantissa_block>
|
||||||
<is_hex_only>true</is_hex_only>
|
<is_hex_only>true</is_hex_only>
|
||||||
<value_hex>2D 2E 45 2D 35</value_hex>
|
<value_hex>2D 2E 45 2D 35</value_hex>
|
||||||
</mantissa_block>
|
</mantissa_block>
|
||||||
<value_hex>-.E-5</value_hex>
|
<value_hex>-.E-5</value_hex>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
44
format/asn1/testdata/tc8.xml
vendored
44
format/asn1/testdata/tc8.xml
vendored
@ -1,22 +1,22 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<information_block>
|
<information_block>
|
||||||
<warnings>
|
<warnings>
|
||||||
<warning>Special REAL value should be encoded by 1 octet only</warning>
|
<warning>Special REAL value should be encoded by 1 octet only</warning>
|
||||||
</warnings>
|
</warnings>
|
||||||
<is_special_value>true</is_special_value>
|
<is_special_value>true</is_special_value>
|
||||||
<special_value>MINUS-INFINITY</special_value>
|
<special_value>MINUS-INFINITY</special_value>
|
||||||
</information_block>
|
</information_block>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
40
format/asn1/testdata/tc9.xml
vendored
40
format/asn1/testdata/tc9.xml
vendored
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<REAL>
|
<REAL>
|
||||||
<error>Encoded reserved value with BASE (11)</error>
|
<error>Encoded reserved value with BASE (11)</error>
|
||||||
<identification_block>
|
<identification_block>
|
||||||
<tag_class>UNIVERSAL</tag_class>
|
<tag_class>UNIVERSAL</tag_class>
|
||||||
<is_constructed>false</is_constructed>
|
<is_constructed>false</is_constructed>
|
||||||
<value_dec>9</value_dec>
|
<value_dec>9</value_dec>
|
||||||
</identification_block>
|
</identification_block>
|
||||||
<length_block>
|
<length_block>
|
||||||
<is_indefinite_form>false</is_indefinite_form>
|
<is_indefinite_form>false</is_indefinite_form>
|
||||||
<long_form_used>false</long_form_used>
|
<long_form_used>false</long_form_used>
|
||||||
<length>3</length>
|
<length>3</length>
|
||||||
</length_block>
|
</length_block>
|
||||||
<value_block>
|
<value_block>
|
||||||
<error>Encoded reserved value with BASE (11)</error>
|
<error>Encoded reserved value with BASE (11)</error>
|
||||||
<information_block>
|
<information_block>
|
||||||
<error>Encoded reserved value with BASE (11)</error>
|
<error>Encoded reserved value with BASE (11)</error>
|
||||||
</information_block>
|
</information_block>
|
||||||
</value_block>
|
</value_block>
|
||||||
</REAL>
|
</REAL>
|
||||||
|
Loading…
Reference in New Issue
Block a user