]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/asn1specs/any.asn1
Security-54.1.tar.gz
[apple/security.git] / SecuritySNACCRuntime / asn1specs / any.asn1
1 -- file: asn1specs/any.asn1
2 --
3 -- this file is used in ../c{,++}-examples/any/
4 --
5 -- $Header: /cvs/Darwin/Security/SecuritySNACCRuntime/asn1specs/any.asn1,v 1.1.1.1 2001/05/18 23:14:05 mb Exp $
6 -- $Log: any.asn1,v $
7 -- Revision 1.1.1.1 2001/05/18 23:14:05 mb
8 -- Move from private repository to open source repository
9 --
10 -- Revision 1.1.1.1 1999/03/16 18:05:55 aram
11 -- Originals from SMIME Free Library.
12 --
13 -- Revision 1.2 1997/02/16 20:25:20 rj
14 -- check-in of a few cosmetic changes
15 --
16 -- Revision 1.1 1994/08/31 22:44:44 rj
17 -- first check-in.
18
19 ANY-TEST DEFINITIONS ::= BEGIN
20
21 --
22 -- use the SNMP OBJECT type to define the correlation between
23 -- the identifying INTEGER/OBJECT IDENTIFIER
24 -- and the ANY DEFINED BY type
25 --
26
27 intId OBJECT-TYPE
28 SYNTAX INTEGER
29 ACCESS read-write
30 STATUS mandatory
31 ::= 1
32
33 boolId OBJECT-TYPE
34 SYNTAX BOOLEAN
35 ACCESS read-write
36 STATUS mandatory
37 ::= 2
38
39 octsId OBJECT-TYPE
40 SYNTAX [PRIVATE 2] IMPLICIT OCTET STRING
41 ACCESS read-write
42 STATUS mandatory
43 ::= 3
44
45 bitsId OBJECT-TYPE
46 SYNTAX [PRIVATE 1] BIT STRING
47 ACCESS read-write
48 STATUS mandatory
49 ::= 4
50
51 realId OBJECT-TYPE
52 SYNTAX REAL
53 ACCESS read-write
54 STATUS mandatory
55 ::= 5
56
57 --
58 -- note that the following OBJECT-TYPE OBJECT IDENTIFIER values
59 -- reference the previous OBJECT-TYPE INTEGER values
60
61 intOid OBJECT-TYPE
62 SYNTAX INTEGER
63 ACCESS read-write
64 STATUS mandatory
65 ::= { 0 1 2 3 4 intId}
66
67 boolOid OBJECT-TYPE
68 SYNTAX BOOLEAN
69 ACCESS read-write
70 STATUS mandatory
71 ::= { 0 1 2 3 4 boolId}
72
73 octsOid OBJECT-TYPE
74 SYNTAX OCTET STRING
75 ACCESS read-write
76 STATUS mandatory
77 ::= { 0 1 2 3 4 octsId}
78
79 bitsOid OBJECT-TYPE
80 SYNTAX BIT STRING
81 ACCESS read-write
82 STATUS mandatory
83 ::= { 0 1 2 3 4 bitsId}
84
85 realOid OBJECT-TYPE
86 SYNTAX REAL
87 ACCESS read-write
88 STATUS mandatory
89 ::= { 0 1 2 3 4 realId}
90
91
92 -- this type tests both the INTEGER and OBJECT IDENTIFIER mapping
93 AnyTestType ::= --snacc isPdu:"TRUE" -- SEQUENCE
94 {
95 intMap TSeq1,
96 oidMap TSeq2
97 }
98
99 TSeq1 ::= SEQUENCE OF AttrValue1
100
101
102 AttrValue1 ::= SEQUENCE
103 {
104 id INTEGER,
105 ANY DEFINED BY id
106 }
107
108 TSeq2 ::= SEQUENCE OF AttrValue2
109
110 AttrValue2 ::= SEQUENCE
111 {
112 id OBJECT IDENTIFIER,
113 ANY DEFINED BY id
114 }
115
116 END