diff options
author | Kenneth Lundin <[email protected]> | 2010-02-19 14:01:57 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-02-19 14:01:57 +0000 |
commit | 18bd1239bee04427340a44f57f993ea92c264e41 (patch) | |
tree | dbb3031dcd2e446eb457ff7ac5229949517d7557 /lib/asn1/test/asn1_bin_SUITE_data/ContextSwitchingTypes.asn1 | |
parent | 729565dc3f8bcf8829508136498aef6a542840f4 (diff) | |
download | otp-18bd1239bee04427340a44f57f993ea92c264e41.tar.gz otp-18bd1239bee04427340a44f57f993ea92c264e41.tar.bz2 otp-18bd1239bee04427340a44f57f993ea92c264e41.zip |
OTP-8463 Support for EXTENSIBILITY IMPLIED and SET/SEQ OF NamedType is
added.
Diffstat (limited to 'lib/asn1/test/asn1_bin_SUITE_data/ContextSwitchingTypes.asn1')
-rw-r--r-- | lib/asn1/test/asn1_bin_SUITE_data/ContextSwitchingTypes.asn1 | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_bin_SUITE_data/ContextSwitchingTypes.asn1 b/lib/asn1/test/asn1_bin_SUITE_data/ContextSwitchingTypes.asn1 new file mode 100644 index 0000000000..c8145bad63 --- /dev/null +++ b/lib/asn1/test/asn1_bin_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 |