diff options
author | Björn Gustavsson <[email protected]> | 2013-03-14 14:50:35 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-03-14 14:50:35 +0100 |
commit | 5f764a80aab1af1bbae170f8819fe3c3393b0cb6 (patch) | |
tree | e747201ce1384c4c917c33077ad04b1eace75ba6 /lib/asn1/test/asn1_SUITE_data | |
parent | 8e44167cb97ccf51a8ee3ca97449613ef3300514 (diff) | |
parent | e7f320e1f84da88a96c3bc4a76f43a296a738264 (diff) | |
download | otp-5f764a80aab1af1bbae170f8819fe3c3393b0cb6.tar.gz otp-5f764a80aab1af1bbae170f8819fe3c3393b0cb6.tar.bz2 otp-5f764a80aab1af1bbae170f8819fe3c3393b0cb6.zip |
Merge branch 'maint-r16' into maint
* maint-r16:
Prepare release
PER: Ensure that the complete encoding is at least one byte
PER/UPER: Correct decoding of ENUMERATEDs with a single value
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/Prim.asn1 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Prim.asn1 b/lib/asn1/test/asn1_SUITE_data/Prim.asn1 index 17a5d3490a..c3d54dbbb3 100644 --- a/lib/asn1/test/asn1_SUITE_data/Prim.asn1 +++ b/lib/asn1/test/asn1_SUITE_data/Prim.asn1 @@ -22,6 +22,8 @@ BEGIN Enum ::= ENUMERATED {monday(1),tuesday(2),wednesday(3),thursday(4), friday(5),saturday(6),sunday(7)} + SingleEnumVal ::= ENUMERATED {true} + SingleEnumValExt ::= ENUMERATED {true, ...} ObjId ::= OBJECT IDENTIFIER @@ -35,4 +37,15 @@ BEGIN base (2), exponent (-125..128) } ) + Seq ::= SEQUENCE { + n Null, + i1 INTEGER (0..63), + e1 SingleEnumVal, + i2 INTEGER (0..63), + e2 SingleEnumVal, + i3 INTEGER (0..63), + b Bool, + i4 INTEGER (0..63) + } + END |