summaryrefslogtreecommitdiff
path: root/tests/coding-decoding2.asn
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-09 11:29:22 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-09 11:29:22 +0200
commitf908a06812970930ca6c0e8545e9d4c8e2d0c690 (patch)
tree5d33ba5bdb2a3b233763bc390724fe9224382bfc /tests/coding-decoding2.asn
parent9ca7c7bf196c6572e115cf60ac51dfb7f4b2037c (diff)
downloadlibtasn1-f908a06812970930ca6c0e8545e9d4c8e2d0c690.tar.gz
libtasn1-f908a06812970930ca6c0e8545e9d4c8e2d0c690.tar.bz2
libtasn1-f908a06812970930ca6c0e8545e9d4c8e2d0c690.zip
Added new test that combines asn1_der_decoding_startEnd() with asn1_der_coding().
Diffstat (limited to 'tests/coding-decoding2.asn')
-rw-r--r--tests/coding-decoding2.asn30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/coding-decoding2.asn b/tests/coding-decoding2.asn
new file mode 100644
index 0000000..ee167a1
--- /dev/null
+++ b/tests/coding-decoding2.asn
@@ -0,0 +1,30 @@
+TEST {}
+DEFINITIONS IMPLICIT TAGS ::=
+BEGIN
+
+Choice2 ::= CHOICE {
+ oct1 OCTET STRING,
+ int1 [3] INTEGER,
+ oct2 OCTET STRING
+}
+
+
+Choice1 ::= CHOICE {
+ int4 [0] INTEGER,
+ choice2 Choice2,
+ int5 [1] INTEGER
+}
+
+Choice0 ::= CHOICE {
+ int6 [0] INTEGER,
+ choice1 Choice1,
+ int7 [1] INTEGER
+}
+
+Main ::= SEQUENCE {
+ pad1 INTEGER,
+ choice0 Choice0,
+ pad2 INTEGER
+}
+
+END