diff options
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/ContextSwitchingTypes.asn1')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/ContextSwitchingTypes.asn1 | 53 |
1 files changed, 53 insertions, 0 deletions
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 |