blob: aa9d594778f94afcbd737d9e4abf754121287195 [file] [log] [blame]
vlmd938e0b2006-03-16 11:04:55 +00001
2-- OK: Everything is fine
3
4-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
5-- .spelio.software.asn1c.test (9363.1.5.1)
6-- .99
7
8ModuleClassSample
9 { iso org(3) dod(6) internet (1) private(4) enterprise(1)
10 spelio(9363) software(1) asn1c(5) test(1) 99 }
11 DEFINITIONS ::=
12BEGIN
13
14 SAMPLE-CLASS ::= CLASS {
15 &id RELATIVE-OID UNIQUE,
16 &code ENUMERATED { request, response, status }
17 DEFAULT request,
18 &Type OPTIONAL
19 } WITH SYNTAX { [TYPE &Type] [WITH CODE &code] IDENTIFIED BY &id }
20
21 request-Whatever SAMPLE-CLASS
22 ::= { IDENTIFIED BY request-whatever }
23
24 respond-Stuff SAMPLE-CLASS
25 ::= { WITH CODE 1 IDENTIFIED BY response-stuff }
26
27 request-Status SAMPLE-CLASS
28 ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY request-id }
29
30 request-Salt SAMPLE-CLASS
31 ::= { TYPE Salt IDENTIFIED BY request-salt }
32
33 request-id RELATIVE-OID ::= { 1 1 1 }
34 request-salt RELATIVE-OID ::= { 1 1 1 }
35 request-whatever RELATIVE-OID ::= { 1 1 5 }
36 response-stuff RELATIVE-OID ::= { 2 0 1 }
37
38
39 SampleType ::= SEQUENCE { ... }
40 Salt ::= SET { ... }
41
42END