diff options
author | Björn Gustavsson <[email protected]> | 2014-09-25 12:53:56 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-01-12 11:40:24 +0100 |
commit | 081b4f03af69f67abf97f268d5d097918a6f3d6d (patch) | |
tree | 645a18437bd95c48db6a527a3be9a21a71ea2854 /lib/asn1/test/asn1_SUITE_data | |
parent | 3ab3b07afd07bb2fc59037e4b65f08c9038bf078 (diff) | |
download | otp-081b4f03af69f67abf97f268d5d097918a6f3d6d.tar.gz otp-081b4f03af69f67abf97f268d5d097918a6f3d6d.tar.bz2 otp-081b4f03af69f67abf97f268d5d097918a6f3d6d.zip |
Correct recursion in OCTET STRING value definitions
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/ValueTest.asn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/ValueTest.asn b/lib/asn1/test/asn1_SUITE_data/ValueTest.asn index 51da9d8afb..739c8a4e45 100644 --- a/lib/asn1/test/asn1_SUITE_data/ValueTest.asn +++ b/lib/asn1/test/asn1_SUITE_data/ValueTest.asn @@ -79,4 +79,28 @@ int-holder-2 INT-HOLDER ::= { ID 4 OBJ int-holder-1 } II ::= INTEGER (int-from-object-1..int-from-object-2) +-- Recursive OCTET STRING definitions. + +OS-HOLDER ::= CLASS { + &id INTEGER UNIQUE, + &os OCTET STRING +} WITH SYNTAX { + ID &id OS &os +} + +os-holder-1 OS-HOLDER ::= { ID 1 OS '4041FF'H } + +OctetStringSeq ::= ParamSeq{OCTET STRING} + +someOctetString OCTET STRING ::= '404142'H + +octetStringSeq1 OctetStringSeq ::= { a someOctetString } +octetStringSeq2 OctetStringSeq ::= { a otherOctetString } +octetStringSeq3 OctetStringSeq ::= { a os-holder-1.&os } + +otherOctetString OCTET STRING ::= someOctetString + +os-1 OCTET STRING ::= os-2 +os-2 OCTET STRING ::= os-holder-1.&os + END |