aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/Constraints.py
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-10-21 12:18:18 +0200
committerBjörn Gustavsson <[email protected]>2013-10-21 12:18:18 +0200
commita878a3aa43381f0281611fd3a87ce33dcadb785c (patch)
tree78a20e38d2511e8bf3ea43bfe899288c8d2fb128 /lib/asn1/test/asn1_SUITE_data/Constraints.py
parent5a69967bf89327368cd45e000df054953fa74f10 (diff)
parent9676a78c5cdeeea311048a7d9630f333811747d1 (diff)
downloadotp-a878a3aa43381f0281611fd3a87ce33dcadb785c.tar.gz
otp-a878a3aa43381f0281611fd3a87ce33dcadb785c.tar.bz2
otp-a878a3aa43381f0281611fd3a87ce33dcadb785c.zip
Merge branch 'maint'
* maint: PER/UPER: Correct encoding for single-value extensible constraints asn1ct_value: Handle named INTEGERs with constraints
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/Constraints.py')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/Constraints.py5
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))