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
11 #ifndef _authorityKeyIdentifier_h_
12 #define _authorityKeyIdentifier_h_
21 #pragma warning( disable : 4101 )
23 #include "componentlib.h"
24 typedef ComponentOcts ComponentKeyIdentifier; /* OCTET STRING */
26 #define MatchingComponentKeyIdentifier MatchingComponentOcts
28 #define ExtractingComponentKeyIdentifier ExtractingComponentOcts
30 #define BDecComponentKeyIdentifier BDecComponentOcts
32 #define GDecComponentKeyIdentifier GDecComponentOcts
35 typedef ComponentInt ComponentCertificateSerialNumber; /* INTEGER */
37 #define MatchingComponentCertificateSerialNumber MatchingComponentInt
39 #define ExtractingComponentCertificateSerialNumber ExtractingComponentInt
41 #define BDecComponentCertificateSerialNumber BDecComponentInt
43 #define GDecComponentCertificateSerialNumber GDecComponentInt
46 typedef struct OtherName /* SEQUENCE */
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 */
56 int MatchingComponentOtherName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
59 void* ExtractingComponentOtherName PROTO (( void* mem_op, ComponentReference *cr, ComponentOtherName *comp ));
62 int BDecComponentOtherName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentOtherName **v, AsnLen *bytesDecoded, int mode));
65 int GDecComponentOtherName PROTO (( void* mem_op, GenBuf * b, ComponentOtherName **v, AsnLen *bytesDecoded, int mode));
69 typedef struct ORAddress /* SEQUENCE */
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 */
80 int MatchingComponentORAddress PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
83 void* ExtractingComponentORAddress PROTO (( void* mem_op, ComponentReference *cr, ComponentORAddress *comp ));
86 int BDecComponentORAddress PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentORAddress **v, AsnLen *bytesDecoded, int mode));
89 int GDecComponentORAddress PROTO (( void* mem_op, GenBuf * b, ComponentORAddress **v, AsnLen *bytesDecoded, int mode));
93 typedef struct AttributeTypeAndValue /* SEQUENCE */
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;
103 int MatchingComponentAttributeTypeAndValue PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
106 void* ExtractingComponentAttributeTypeAndValue PROTO (( void* mem_op, ComponentReference *cr, ComponentAttributeTypeAndValue *comp ));
109 int BDecComponentAttributeTypeAndValue PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
112 int GDecComponentAttributeTypeAndValue PROTO (( void* mem_op, GenBuf * b, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
116 typedef struct DirectoryString /* CHOICE */
119 ComponentDesc* comp_desc;
120 struct berval identifier;
121 char id_buf[MAX_IDENTIFIER_LEN];
122 enum DirectoryStringChoiceId
124 DIRECTORYSTRING_TELETEXSTRING,
125 DIRECTORYSTRING_PRINTABLESTRING,
126 DIRECTORYSTRING_UNIVERSALSTRING,
127 DIRECTORYSTRING_UTF8STRING,
128 DIRECTORYSTRING_BMPSTRING
130 union DirectoryStringChoiceUnion
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 */
138 } ComponentDirectoryString;
140 int MatchingComponentDirectoryString PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
143 void* ExtractingComponentDirectoryString PROTO (( void* mem_op, ComponentReference *cr, ComponentDirectoryString *comp ));
146 int BDecComponentDirectoryString PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentDirectoryString **v, AsnLen *bytesDecoded, int mode));
149 int GDecComponentDirectoryString PROTO (( void* mem_op, GenBuf * b, ComponentDirectoryString **v, AsnLen *bytesDecoded, int mode));
153 typedef struct EDIPartyName /* SEQUENCE */
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;
163 int MatchingComponentEDIPartyName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
166 void* ExtractingComponentEDIPartyName PROTO (( void* mem_op, ComponentReference *cr, ComponentEDIPartyName *comp ));
169 int BDecComponentEDIPartyName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentEDIPartyName **v, AsnLen *bytesDecoded, int mode));
172 int GDecComponentEDIPartyName PROTO (( void* mem_op, GenBuf * b, ComponentEDIPartyName **v, AsnLen *bytesDecoded, int mode));
176 typedef ComponentList ComponentRelativeDistinguishedName; /* SET OF AttributeTypeAndValue */
178 int MatchingComponentRelativeDistinguishedName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
181 void* ExtractingComponentRelativeDistinguishedName PROTO (( void* mem_op, ComponentReference *cr, ComponentRelativeDistinguishedName *comp ));
184 int BDecComponentRelativeDistinguishedName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
187 int GDecComponentRelativeDistinguishedName PROTO (( void* mem_op, GenBuf * b, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
191 typedef ComponentList ComponentRDNSequence; /* SEQUENCE OF RelativeDistinguishedName */
193 int MatchingComponentRDNSequence PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
196 void* ExtractingComponentRDNSequence PROTO (( void* mem_op, ComponentReference *cr, ComponentRDNSequence *comp ));
199 int BDecComponentRDNSequence PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
202 int GDecComponentRDNSequence PROTO (( void* mem_op, GenBuf * b, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
206 typedef struct Name /* CHOICE */
209 ComponentDesc* comp_desc;
210 struct berval identifier;
211 char id_buf[MAX_IDENTIFIER_LEN];
216 union NameChoiceUnion
218 ComponentRDNSequence* rdnSequence; /* RDNSequence */
222 int MatchingComponentName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
225 void* ExtractingComponentName PROTO (( void* mem_op, ComponentReference *cr, ComponentName *comp ));
228 int BDecComponentName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentName **v, AsnLen *bytesDecoded, int mode));
231 int GDecComponentName PROTO (( void* mem_op, GenBuf * b, ComponentName **v, AsnLen *bytesDecoded, int mode));
235 typedef struct GeneralName /* CHOICE */
238 ComponentDesc* comp_desc;
239 struct berval identifier;
240 char id_buf[MAX_IDENTIFIER_LEN];
241 enum GeneralNameChoiceId
243 GENERALNAME_OTHERNAME,
244 GENERALNAME_RFC822NAME,
246 GENERALNAME_X400ADDRESS,
247 GENERALNAME_DIRECTORYNAME,
248 GENERALNAME_EDIPARTYNAME,
249 GENERALNAME_UNIFORMRESOURCEIDENTIFIER,
250 GENERALNAME_IPADDRESS,
251 GENERALNAME_REGISTEREDID
253 union GeneralNameChoiceUnion
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 */
265 } ComponentGeneralName;
267 int MatchingComponentGeneralName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
270 void* ExtractingComponentGeneralName PROTO (( void* mem_op, ComponentReference *cr, ComponentGeneralName *comp ));
273 int BDecComponentGeneralName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentGeneralName **v, AsnLen *bytesDecoded, int mode));
276 int GDecComponentGeneralName PROTO (( void* mem_op, GenBuf * b, ComponentGeneralName **v, AsnLen *bytesDecoded, int mode));
280 typedef ComponentList ComponentGeneralNames; /* SEQUENCE SIZE 1..MAX OF GeneralName */
282 int MatchingComponentGeneralNames PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
285 void* ExtractingComponentGeneralNames PROTO (( void* mem_op, ComponentReference *cr, ComponentGeneralNames *comp ));
288 int BDecComponentGeneralNames PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentGeneralNames **v, AsnLen *bytesDecoded, int mode));
291 int GDecComponentGeneralNames PROTO (( void* mem_op, GenBuf * b, ComponentGeneralNames **v, AsnLen *bytesDecoded, int mode));
295 typedef struct AuthorityKeyIdentifier /* SEQUENCE */
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;
306 int MatchingComponentAuthorityKeyIdentifier PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
309 void* ExtractingComponentAuthorityKeyIdentifier PROTO (( void* mem_op, ComponentReference *cr, ComponentAuthorityKeyIdentifier *comp ));
312 int BDecComponentAuthorityKeyIdentifier PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAuthorityKeyIdentifier **v, AsnLen *bytesDecoded, int mode));
315 int GDecComponentAuthorityKeyIdentifier PROTO (( void* mem_op, GenBuf * b, ComponentAuthorityKeyIdentifier **v, AsnLen *bytesDecoded, int mode));
319 /* ========== Object Declarations ========== */
322 /* ========== Object Set Declarations ========== */
327 #endif /* conditional include of authorityKeyIdentifier.h */