5 * "CertificateRevokationList" ASN.1 module encode/decode/extracting/matching/free C src.
6 * This file was generated by modified eSMACC compiler Fri Jan 21 11:25:24 2005
7 * The generated files are strongly encouraged to be
8 * compiled as a module for OpenLDAP Software
21 #pragma warning( disable : 4101 )
23 #include "componentlib.h"
29 typedef ComponentInt ComponentVersion; /* INTEGER { V1 (0), V2 (1), V3 (2) } */
31 #define MatchingComponentVersion MatchingComponentInt
33 #define ExtractingComponentVersion ExtractingComponentInt
35 #define BDecComponentVersion BDecComponentInt
37 #define GDecComponentVersion GDecComponentInt
40 typedef ComponentInt ComponentCertificateSerialNumber; /* INTEGER */
42 #define MatchingComponentCertificateSerialNumber MatchingComponentInt
44 #define ExtractingComponentCertificateSerialNumber ExtractingComponentInt
46 #define BDecComponentCertificateSerialNumber BDecComponentInt
48 #define GDecComponentCertificateSerialNumber GDecComponentInt
51 typedef ComponentOid ComponentAttributeType; /* OBJECT IDENTIFIER */
53 #define MatchingComponentAttributeType MatchingComponentOid
55 #define ExtractingComponentAttributeType ExtractingComponentOid
57 #define BDecComponentAttributeType BDecComponentOid
59 #define GDecComponentAttributeType GDecComponentOid
62 typedef struct AlgorithmIdentifier /* SEQUENCE */
65 ComponentDesc* comp_desc;
66 struct berval identifier;
67 char id_buf[MAX_IDENTIFIER_LEN];
68 ComponentOid algorithm; /* OBJECT IDENTIFIER */
69 ComponentAnyDefinedBy parameters; /* ANY DEFINED BY algorithm OPTIONAL */
70 } ComponentAlgorithmIdentifier;
72 int MatchingComponentAlgorithmIdentifier PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
75 void* ExtractingComponentAlgorithmIdentifier PROTO (( void* mem_op, ComponentReference *cr, ComponentAlgorithmIdentifier *comp ));
78 int BDecComponentAlgorithmIdentifier PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAlgorithmIdentifier **v, AsnLen *bytesDecoded, int mode));
81 int GDecComponentAlgorithmIdentifier PROTO (( void* mem_op, GenBuf * b, ComponentAlgorithmIdentifier **v, AsnLen *bytesDecoded, int mode));
85 typedef struct Time /* CHOICE */
88 ComponentDesc* comp_desc;
89 struct berval identifier;
90 char id_buf[MAX_IDENTIFIER_LEN];
98 ComponentUTCTime* utcTime; /* < unknown type id ?! > */
99 ComponentGeneralizedTime* generalizedTime; /* < unknown type id ?! > */
103 int MatchingComponentTime PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
106 void* ExtractingComponentTime PROTO (( void* mem_op, ComponentReference *cr, ComponentTime *comp ));
109 int BDecComponentTime PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentTime **v, AsnLen *bytesDecoded, int mode));
112 int GDecComponentTime PROTO (( void* mem_op, GenBuf * b, ComponentTime **v, AsnLen *bytesDecoded, int mode));
116 typedef struct Extension /* SEQUENCE */
119 ComponentDesc* comp_desc;
120 struct berval identifier;
121 char id_buf[MAX_IDENTIFIER_LEN];
122 ComponentOid extnID; /* OBJECT IDENTIFIER */
123 ComponentBool* critical; /* BOOLEAN DEFAULT FALSE */
124 ComponentOcts extnValue; /* OCTET STRING */
125 } ComponentExtension;
127 int MatchingComponentExtension PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
130 void* ExtractingComponentExtension PROTO (( void* mem_op, ComponentReference *cr, ComponentExtension *comp ));
133 int BDecComponentExtension PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentExtension **v, AsnLen *bytesDecoded, int mode));
136 int GDecComponentExtension PROTO (( void* mem_op, GenBuf * b, ComponentExtension **v, AsnLen *bytesDecoded, int mode));
140 typedef struct AttributeTypeAndValue /* SEQUENCE */
143 ComponentDesc* comp_desc;
144 struct berval identifier;
145 char id_buf[MAX_IDENTIFIER_LEN];
146 ComponentAttributeType type; /* AttributeType */
147 ComponentAnyDefinedBy value; /* ANY DEFINED BY type */
148 } ComponentAttributeTypeAndValue;
150 int MatchingComponentAttributeTypeAndValue PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
153 void* ExtractingComponentAttributeTypeAndValue PROTO (( void* mem_op, ComponentReference *cr, ComponentAttributeTypeAndValue *comp ));
156 int BDecComponentAttributeTypeAndValue PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
159 int GDecComponentAttributeTypeAndValue PROTO (( void* mem_op, GenBuf * b, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
163 typedef ComponentList ComponentExtensions; /* SEQUENCE SIZE 1..MAX OF Extension */
165 int MatchingComponentExtensions PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
168 void* ExtractingComponentExtensions PROTO (( void* mem_op, ComponentReference *cr, ComponentExtensions *comp ));
171 int BDecComponentExtensions PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentExtensions **v, AsnLen *bytesDecoded, int mode));
174 int GDecComponentExtensions PROTO (( void* mem_op, GenBuf * b, ComponentExtensions **v, AsnLen *bytesDecoded, int mode));
178 typedef struct TBSCertListSeqOfSeq /* SEQUENCE */
181 ComponentDesc* comp_desc;
182 struct berval identifier;
183 char id_buf[MAX_IDENTIFIER_LEN];
184 ComponentCertificateSerialNumber userCertificate; /* CertificateSerialNumber */
185 ComponentTime* revocationDate; /* Time */
186 ComponentExtensions* crlEntryExtensions; /* Extensions OPTIONAL */
187 } ComponentTBSCertListSeqOfSeq;
189 int MatchingComponentTBSCertListSeqOfSeq PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
192 void* ExtractingComponentTBSCertListSeqOfSeq PROTO (( void* mem_op, ComponentReference *cr, ComponentTBSCertListSeqOfSeq *comp ));
195 int BDecComponentTBSCertListSeqOfSeq PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentTBSCertListSeqOfSeq **v, AsnLen *bytesDecoded, int mode));
198 int GDecComponentTBSCertListSeqOfSeq PROTO (( void* mem_op, GenBuf * b, ComponentTBSCertListSeqOfSeq **v, AsnLen *bytesDecoded, int mode));
202 typedef ComponentList ComponentTBSCertListSeqOf; /* SEQUENCE OF TBSCertListSeqOfSeq */
204 int MatchingComponentTBSCertListSeqOf PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
207 void* ExtractingComponentTBSCertListSeqOf PROTO (( void* mem_op, ComponentReference *cr, ComponentTBSCertListSeqOf *comp ));
210 int BDecComponentTBSCertListSeqOf PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentTBSCertListSeqOf **v, AsnLen *bytesDecoded, int mode));
213 int GDecComponentTBSCertListSeqOf PROTO (( void* mem_op, GenBuf * b, ComponentTBSCertListSeqOf **v, AsnLen *bytesDecoded, int mode));
217 typedef ComponentList ComponentRelativeDistinguishedName; /* SET OF AttributeTypeAndValue */
219 int MatchingComponentRelativeDistinguishedName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
222 void* ExtractingComponentRelativeDistinguishedName PROTO (( void* mem_op, ComponentReference *cr, ComponentRelativeDistinguishedName *comp ));
225 int BDecComponentRelativeDistinguishedName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
228 int GDecComponentRelativeDistinguishedName PROTO (( void* mem_op, GenBuf * b, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
232 typedef ComponentList ComponentRDNSequence; /* SEQUENCE OF RelativeDistinguishedName */
234 int MatchingComponentRDNSequence PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
237 void* ExtractingComponentRDNSequence PROTO (( void* mem_op, ComponentReference *cr, ComponentRDNSequence *comp ));
240 int BDecComponentRDNSequence PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
243 int GDecComponentRDNSequence PROTO (( void* mem_op, GenBuf * b, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
247 typedef struct Name /* CHOICE */
250 ComponentDesc* comp_desc;
251 struct berval identifier;
252 char id_buf[MAX_IDENTIFIER_LEN];
257 union NameChoiceUnion
259 ComponentRDNSequence* rdnSequence; /* RDNSequence */
263 int MatchingComponentName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
266 void* ExtractingComponentName PROTO (( void* mem_op, ComponentReference *cr, ComponentName *comp ));
269 int BDecComponentName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentName **v, AsnLen *bytesDecoded, int mode));
272 int GDecComponentName PROTO (( void* mem_op, GenBuf * b, ComponentName **v, AsnLen *bytesDecoded, int mode));
276 typedef struct TBSCertList /* SEQUENCE */
279 ComponentDesc* comp_desc;
280 struct berval identifier;
281 char id_buf[MAX_IDENTIFIER_LEN];
282 ComponentVersion* version; /* Version OPTIONAL */
283 ComponentAlgorithmIdentifier* signature; /* AlgorithmIdentifier */
284 ComponentName* issuer; /* Name */
285 ComponentTime* thisUpdate; /* Time */
286 ComponentTime* nextUpdate; /* Time OPTIONAL */
287 ComponentTBSCertListSeqOf* revokedCertificates; /* TBSCertListSeqOf */
288 ComponentExtensions* crlExtensions; /* [0] EXPLICIT Extensions OPTIONAL */
289 } ComponentTBSCertList;
291 int MatchingComponentTBSCertList PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
294 void* ExtractingComponentTBSCertList PROTO (( void* mem_op, ComponentReference *cr, ComponentTBSCertList *comp ));
297 int BDecComponentTBSCertList PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentTBSCertList **v, AsnLen *bytesDecoded, int mode));
300 int GDecComponentTBSCertList PROTO (( void* mem_op, GenBuf * b, ComponentTBSCertList **v, AsnLen *bytesDecoded, int mode));
304 typedef struct CertificateList /* SEQUENCE */
307 ComponentDesc* comp_desc;
308 struct berval identifier;
309 char id_buf[MAX_IDENTIFIER_LEN];
310 ComponentTBSCertList* tbsCertList; /* TBSCertList */
311 ComponentAlgorithmIdentifier* signatureAlgorithm; /* AlgorithmIdentifier */
312 ComponentBits signature; /* BIT STRING */
313 } ComponentCertificateList;
315 int MatchingComponentCertificateList PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
318 void* ExtractingComponentCertificateList PROTO (( void* mem_op, ComponentReference *cr, ComponentCertificateList *comp ));
321 int BDecComponentCertificateList PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentCertificateList **v, AsnLen *bytesDecoded, int mode));
324 int GDecComponentCertificateList PROTO (( void* mem_op, GenBuf * b, ComponentCertificateList **v, AsnLen *bytesDecoded, int mode));
328 typedef struct Validity /* SEQUENCE */
331 ComponentDesc* comp_desc;
332 struct berval identifier;
333 char id_buf[MAX_IDENTIFIER_LEN];
334 ComponentTime* notBefore; /* Time */
335 ComponentTime* notAfter; /* Time */
338 int MatchingComponentValidity PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
341 void* ExtractingComponentValidity PROTO (( void* mem_op, ComponentReference *cr, ComponentValidity *comp ));
344 int BDecComponentValidity PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentValidity **v, AsnLen *bytesDecoded, int mode));
347 int GDecComponentValidity PROTO (( void* mem_op, GenBuf * b, ComponentValidity **v, AsnLen *bytesDecoded, int mode));
351 /* ========== Object Declarations ========== */
354 /* ========== Object Set Declarations ========== */
359 #endif /* conditional include of crl.h */