diff options
author | Björn Gustavsson <[email protected]> | 2013-09-16 14:04:08 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-09-30 10:11:10 +0200 |
commit | c28e62178eced67090d5e5f40d0f6207a6875740 (patch) | |
tree | acf82f3df8d4a84c83158820f19078ca976c8808 /lib/asn1/test/asn1_SUITE_data/Constraints.py | |
parent | 04e6e90856420df28dbac918de3ec22524a221cb (diff) | |
download | otp-c28e62178eced67090d5e5f40d0f6207a6875740.tar.gz otp-c28e62178eced67090d5e5f40d0f6207a6875740.tar.bz2 otp-c28e62178eced67090d5e5f40d0f6207a6875740.zip |
PER/UPER: Correct encoding for single-value extensible constraints
An extensible constraint which is a union of single values, such as:
INTEGER (1|17, ...)
would be incorrectly encoded.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/Constraints.py')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/Constraints.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Constraints.py b/lib/asn1/test/asn1_SUITE_data/Constraints.py index e4bc987e4c..581ec2f467 100644 --- a/lib/asn1/test/asn1_SUITE_data/Constraints.py +++ b/lib/asn1/test/asn1_SUITE_data/Constraints.py @@ -17,6 +17,11 @@ NegSemiConstrained ::= INTEGER (-128..MAX) SemiConstrainedExt ::= INTEGER (42..MAX, ...) NegSemiConstrainedExt ::= INTEGER (-128..MAX, ...) +-- Union of single values +Sv1 ::= INTEGER (2|3|17) +Sv2 ::= INTEGER (2|3|17, ...) +Sv3 ::= INTEGER {a(2),b(3),z(17)} (2|3|17, ...) + -- Other constraints FixedSize ::= OCTET STRING (SIZE(10)) FixedSize2 ::= OCTET STRING (SIZE(10|20)) |