From 18bd1239bee04427340a44f57f993ea92c264e41 Mon Sep 17 00:00:00 2001 From: Kenneth Lundin Date: Fri, 19 Feb 2010 14:01:57 +0000 Subject: OTP-8463 Support for EXTENSIBILITY IMPLIED and SET/SEQ OF NamedType is added. --- .../asn1_SUITE_data/ContextSwitchingTypes.asn1 | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 lib/asn1/test/asn1_SUITE_data/ContextSwitchingTypes.asn1 (limited to 'lib/asn1/test/asn1_SUITE_data/ContextSwitchingTypes.asn1') diff --git a/lib/asn1/test/asn1_SUITE_data/ContextSwitchingTypes.asn1 b/lib/asn1/test/asn1_SUITE_data/ContextSwitchingTypes.asn1 new file mode 100644 index 0000000000..c8145bad63 --- /dev/null +++ b/lib/asn1/test/asn1_SUITE_data/ContextSwitchingTypes.asn1 @@ -0,0 +1,53 @@ +ContextSwitchingTypes DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +-- EXTERNAL type + +T ::= EXTERNAL + +Seq ::= SEQUENCE { + a INTEGER, + b T +} + +int INTEGER ::= 12 + +val1-T T ::= {indirect-reference int, encoding octet-aligned:'123'H} + +val2-T T ::= {identification syntax:{1 2 3}, data-value '123'H} + +val3-T T ::= {identification context-negotiation:{presentation-context-id 12, + transfer-syntax {1 2 3}}, + data-value '123'H} + +-- EMBEDDED PDV type + +EP ::= EMBEDDED PDV + +Seq2 ::= SEQUENCE { + a BOOLEAN, + b EP +} + +val1-EP EP ::= {identification syntaxes:{abstract {1 2 3 4}, + transfer {1 2 3 5}}, + data-value '12345'H} + +val2-EP EP ::= {identification syntax:{1 2 3}, data-value '123'H} + +-- CHARACTER STRING type and value + +CS ::= CHARACTER STRING + +Seq3 ::= SEQUENCE { + a INTEGER, + b CS +} + +val1-CS CS ::= {identification syntaxes:{abstract {1 2 3 4}, + transfer {1 2 3 5}}, + string-value '12345'H} + + +END -- cgit v1.2.3