Initial version of asn1c
[com/asn1c.git] / tests / tests-asn1c-compiler / 149-with-components-SE.asn1.-E
diff --git a/tests/tests-asn1c-compiler/149-with-components-SE.asn1.-E b/tests/tests-asn1c-compiler/149-with-components-SE.asn1.-E
new file mode 100644 (file)
index 0000000..e20e6cd
--- /dev/null
@@ -0,0 +1,12 @@
+ModuleComplexWithComponents { iso org(3) dod(6) internet(1) private(4)
+       enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 149 }
+DEFINITIONS ::=
+BEGIN
+
+Certificate ::= ExplicitCertificate (WITH COMPONENTS { ..., issuer (WITH COMPONENTS { sha256AndDigest }), toBeSigned (WITH COMPONENTS { ..., id (WITH COMPONENTS { name ("foo" | "bar") }), crlSeries ( ScmsSpclComponentCrlSeries), validityPeriod (WITH COMPONENTS { ..., duration ( CrlgCertExpiration) }), region (WITH COMPONENTS { identifiedRegion ( SequenceOfIdentifiedRegion (SIZE(3)) (CONSTRAINED BY {
+        IdentifiedRegion ( WITH COMPONENTS { countryOnly(Canada) }),
+        IdentifiedRegion ( WITH COMPONENTS { countryOnly(Mexico) }),
+        IdentifiedRegion ( WITH COMPONENTS { countryOnly(USA) })
+      })) }), canRequestRollover (NULL), encryptionKey ABSENT, verifyKeyIndicator (WITH COMPONENTS { verificationKey (WITH COMPONENTS { ecdsaNistP256 (WITH COMPONENTS { compressed-y-0, compressed-y-1 }) }) }) }) })
+
+END