1 
2 #include "asn-incl.h"
3 /*
4  *    authorityKeyIdentifier.h
5  *    "AuthorityKeyIdentifierDefinition" ASN.1 module encode/decode/extracting/matching/free C src.
6  *    This file was generated by modified eSMACC compiler Sat Dec 11 10:15:39 2004
7  *    The generated files are strongly encouraged to be
8  *    compiled as a module for OpenLDAP Software
9  */
10 
11 #ifndef _authorityKeyIdentifier_h_
12 #define _authorityKeyIdentifier_h_
13 
14 
15 
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 #ifdef _WIN32
21 #pragma warning( disable : 4101 )
22 #endif
23 #include "componentlib.h"
24 typedef ComponentOcts ComponentKeyIdentifier; /* OCTET STRING */
25 
26 #define MatchingComponentKeyIdentifier MatchingComponentOcts
27 
28 #define ExtractingComponentKeyIdentifier ExtractingComponentOcts
29 
30 #define BDecComponentKeyIdentifier BDecComponentOcts
31 
32 #define GDecComponentKeyIdentifier GDecComponentOcts
33 
34 
35 typedef ComponentInt ComponentCertificateSerialNumber; /* INTEGER */
36 
37 #define MatchingComponentCertificateSerialNumber MatchingComponentInt
38 
39 #define ExtractingComponentCertificateSerialNumber ExtractingComponentInt
40 
41 #define BDecComponentCertificateSerialNumber BDecComponentInt
42 
43 #define GDecComponentCertificateSerialNumber GDecComponentInt
44 
45 
46 typedef struct OtherName /* SEQUENCE */
47 {
48 	Syntax* syntax;
49 	ComponentDesc* comp_desc;
50 	struct berval identifier;
51 	char id_buf[MAX_IDENTIFIER_LEN];
52 	ComponentOid type_id; /* OBJECT IDENTIFIER */
53 	ComponentAnyDefinedBy value; /* [0] EXPLICIT ANY DEFINED BY type-id */
54 } ComponentOtherName;
55 
56 int MatchingComponentOtherName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
57 
58 
59 void* ExtractingComponentOtherName PROTO (( void* mem_op, ComponentReference *cr, ComponentOtherName *comp ));
60 
61 
62 int BDecComponentOtherName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentOtherName **v, AsnLen *bytesDecoded, int mode));
63 
64 
65 int GDecComponentOtherName PROTO (( void* mem_op, GenBuf * b, ComponentOtherName **v, AsnLen *bytesDecoded, int mode));
66 
67 
68 
69 typedef struct ORAddress /* SEQUENCE */
70 {
71 	Syntax* syntax;
72 	ComponentDesc* comp_desc;
73 	struct berval identifier;
74 	char id_buf[MAX_IDENTIFIER_LEN];
75 	ComponentOid type_id; /* OBJECT IDENTIFIER */
76 	ComponentAnyDefinedBy value; /* ANY DEFINED BY type-id */
77 	ComponentOcts extension; /* OCTET STRING OPTIONAL */
78 } ComponentORAddress;
79 
80 int MatchingComponentORAddress PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
81 
82 
83 void* ExtractingComponentORAddress PROTO (( void* mem_op, ComponentReference *cr, ComponentORAddress *comp ));
84 
85 
86 int BDecComponentORAddress PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentORAddress **v, AsnLen *bytesDecoded, int mode));
87 
88 
89 int GDecComponentORAddress PROTO (( void* mem_op, GenBuf * b, ComponentORAddress **v, AsnLen *bytesDecoded, int mode));
90 
91 
92 
93 typedef struct AttributeTypeAndValue /* SEQUENCE */
94 {
95 	Syntax* syntax;
96 	ComponentDesc* comp_desc;
97 	struct berval identifier;
98 	char id_buf[MAX_IDENTIFIER_LEN];
99 	ComponentOid type; /* OBJECT IDENTIFIER */
100 	ComponentAnyDefinedBy value; /* ANY DEFINED BY type */
101 } ComponentAttributeTypeAndValue;
102 
103 int MatchingComponentAttributeTypeAndValue PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
104 
105 
106 void* ExtractingComponentAttributeTypeAndValue PROTO (( void* mem_op, ComponentReference *cr, ComponentAttributeTypeAndValue *comp ));
107 
108 
109 int BDecComponentAttributeTypeAndValue PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
110 
111 
112 int GDecComponentAttributeTypeAndValue PROTO (( void* mem_op, GenBuf * b, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
113 
114 
115 
116 typedef struct DirectoryString /* CHOICE */
117 {
118 	Syntax* syntax;
119 	ComponentDesc* comp_desc;
120 	struct berval identifier;
121 	char id_buf[MAX_IDENTIFIER_LEN];
122     enum DirectoryStringChoiceId
123     {
124         DIRECTORYSTRING_TELETEXSTRING,
125         DIRECTORYSTRING_PRINTABLESTRING,
126         DIRECTORYSTRING_UNIVERSALSTRING,
127         DIRECTORYSTRING_UTF8STRING,
128         DIRECTORYSTRING_BMPSTRING
129     } choiceId;
130     union DirectoryStringChoiceUnion
131     {
132 	ComponentTeletexString* teletexString; /* TeletexString SIZE 1..MAX */
133 	ComponentPrintableString* printableString; /* PrintableString SIZE 1..MAX */
134 	ComponentUniversalString* universalString; /* UniversalString SIZE 1..MAX */
135 	ComponentUTF8String* utf8String; /* UTF8String SIZE 1..MAX */
136 	ComponentBMPString* bmpString; /* BMPString SIZE 1..MAX */
137     } a;
138 } ComponentDirectoryString;
139 
140 int MatchingComponentDirectoryString PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
141 
142 
143 void* ExtractingComponentDirectoryString PROTO (( void* mem_op, ComponentReference *cr, ComponentDirectoryString *comp ));
144 
145 
146 int BDecComponentDirectoryString PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentDirectoryString **v, AsnLen *bytesDecoded, int mode));
147 
148 
149 int GDecComponentDirectoryString PROTO (( void* mem_op, GenBuf * b, ComponentDirectoryString **v, AsnLen *bytesDecoded, int mode));
150 
151 
152 
153 typedef struct EDIPartyName /* SEQUENCE */
154 {
155 	Syntax* syntax;
156 	ComponentDesc* comp_desc;
157 	struct berval identifier;
158 	char id_buf[MAX_IDENTIFIER_LEN];
159 	ComponentDirectoryString* nameAssigner; /* [0] DirectoryString OPTIONAL */
160 	ComponentDirectoryString* partyName; /* [1] DirectoryString */
161 } ComponentEDIPartyName;
162 
163 int MatchingComponentEDIPartyName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
164 
165 
166 void* ExtractingComponentEDIPartyName PROTO (( void* mem_op, ComponentReference *cr, ComponentEDIPartyName *comp ));
167 
168 
169 int BDecComponentEDIPartyName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentEDIPartyName **v, AsnLen *bytesDecoded, int mode));
170 
171 
172 int GDecComponentEDIPartyName PROTO (( void* mem_op, GenBuf * b, ComponentEDIPartyName **v, AsnLen *bytesDecoded, int mode));
173 
174 
175 
176 typedef ComponentList ComponentRelativeDistinguishedName; /* SET OF AttributeTypeAndValue */
177 
178 int MatchingComponentRelativeDistinguishedName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
179 
180 
181 void* ExtractingComponentRelativeDistinguishedName PROTO (( void* mem_op, ComponentReference *cr, ComponentRelativeDistinguishedName *comp ));
182 
183 
184 int BDecComponentRelativeDistinguishedName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
185 
186 
187 int GDecComponentRelativeDistinguishedName PROTO (( void* mem_op, GenBuf * b, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
188 
189 
190 
191 typedef ComponentList ComponentRDNSequence; /* SEQUENCE OF RelativeDistinguishedName */
192 
193 int MatchingComponentRDNSequence PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
194 
195 
196 void* ExtractingComponentRDNSequence PROTO (( void* mem_op, ComponentReference *cr, ComponentRDNSequence *comp ));
197 
198 
199 int BDecComponentRDNSequence PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
200 
201 
202 int GDecComponentRDNSequence PROTO (( void* mem_op, GenBuf * b, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
203 
204 
205 
206 typedef struct Name /* CHOICE */
207 {
208 	Syntax* syntax;
209 	ComponentDesc* comp_desc;
210 	struct berval identifier;
211 	char id_buf[MAX_IDENTIFIER_LEN];
212     enum NameChoiceId
213     {
214         NAME_RDNSEQUENCE
215     } choiceId;
216     union NameChoiceUnion
217     {
218 	ComponentRDNSequence* rdnSequence; /* RDNSequence */
219     } a;
220 } ComponentName;
221 
222 int MatchingComponentName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
223 
224 
225 void* ExtractingComponentName PROTO (( void* mem_op, ComponentReference *cr, ComponentName *comp ));
226 
227 
228 int BDecComponentName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentName **v, AsnLen *bytesDecoded, int mode));
229 
230 
231 int GDecComponentName PROTO (( void* mem_op, GenBuf * b, ComponentName **v, AsnLen *bytesDecoded, int mode));
232 
233 
234 
235 typedef struct GeneralName /* CHOICE */
236 {
237 	Syntax* syntax;
238 	ComponentDesc* comp_desc;
239 	struct berval identifier;
240 	char id_buf[MAX_IDENTIFIER_LEN];
241     enum GeneralNameChoiceId
242     {
243         GENERALNAME_OTHERNAME,
244         GENERALNAME_RFC822NAME,
245         GENERALNAME_DNSNAME,
246         GENERALNAME_X400ADDRESS,
247         GENERALNAME_DIRECTORYNAME,
248         GENERALNAME_EDIPARTYNAME,
249         GENERALNAME_UNIFORMRESOURCEIDENTIFIER,
250         GENERALNAME_IPADDRESS,
251         GENERALNAME_REGISTEREDID
252     } choiceId;
253     union GeneralNameChoiceUnion
254     {
255 	ComponentOtherName* otherName; /* [0] OtherName */
256 	ComponentIA5String* rfc822Name; /* [1] IA5String */
257 	ComponentIA5String* dNSName; /* [2] IA5String */
258 	ComponentORAddress* x400Address; /* [3] ORAddress */
259 	ComponentName* directoryName; /* [4] Name */
260 	ComponentEDIPartyName* ediPartyName; /* [5] EDIPartyName */
261 	ComponentIA5String* uniformResourceIdentifier; /* [6] IA5String */
262 	ComponentOcts* iPAddress; /* [7] OCTET STRING */
263 	ComponentOid* registeredID; /* [8] OBJECT IDENTIFIER */
264     } a;
265 } ComponentGeneralName;
266 
267 int MatchingComponentGeneralName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
268 
269 
270 void* ExtractingComponentGeneralName PROTO (( void* mem_op, ComponentReference *cr, ComponentGeneralName *comp ));
271 
272 
273 int BDecComponentGeneralName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentGeneralName **v, AsnLen *bytesDecoded, int mode));
274 
275 
276 int GDecComponentGeneralName PROTO (( void* mem_op, GenBuf * b, ComponentGeneralName **v, AsnLen *bytesDecoded, int mode));
277 
278 
279 
280 typedef ComponentList ComponentGeneralNames; /* SEQUENCE SIZE 1..MAX OF GeneralName */
281 
282 int MatchingComponentGeneralNames PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
283 
284 
285 void* ExtractingComponentGeneralNames PROTO (( void* mem_op, ComponentReference *cr, ComponentGeneralNames *comp ));
286 
287 
288 int BDecComponentGeneralNames PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentGeneralNames **v, AsnLen *bytesDecoded, int mode));
289 
290 
291 int GDecComponentGeneralNames PROTO (( void* mem_op, GenBuf * b, ComponentGeneralNames **v, AsnLen *bytesDecoded, int mode));
292 
293 
294 
295 typedef struct AuthorityKeyIdentifier /* SEQUENCE */
296 {
297 	Syntax* syntax;
298 	ComponentDesc* comp_desc;
299 	struct berval identifier;
300 	char id_buf[MAX_IDENTIFIER_LEN];
301 	ComponentKeyIdentifier keyIdentifier; /* [0] KeyIdentifier OPTIONAL */
302 	ComponentGeneralNames* authorityCertIssuer; /* [1] GeneralNames OPTIONAL */
303 	ComponentCertificateSerialNumber* authorityCertSerialNumber; /* [2] CertificateSerialNumber OPTIONAL */
304 } ComponentAuthorityKeyIdentifier;
305 
306 int MatchingComponentAuthorityKeyIdentifier PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
307 
308 
309 void* ExtractingComponentAuthorityKeyIdentifier PROTO (( void* mem_op, ComponentReference *cr, ComponentAuthorityKeyIdentifier *comp ));
310 
311 
312 int BDecComponentAuthorityKeyIdentifier PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAuthorityKeyIdentifier **v, AsnLen *bytesDecoded, int mode));
313 
314 
315 int GDecComponentAuthorityKeyIdentifier PROTO (( void* mem_op, GenBuf * b, ComponentAuthorityKeyIdentifier **v, AsnLen *bytesDecoded, int mode));
316 
317 
318 
319 /* ========== Object Declarations ========== */
320 
321 
322 /* ========== Object Set Declarations ========== */
323 #ifdef __cplusplus
324 extern "C" {
325 #endif
326 
327 #endif /* conditional include of authorityKeyIdentifier.h */
328