5 * "AuthenticationFramework" ASN.1 module encode/decode/extracting/matching/free C src.
6 * This file was generated by modified eSMACC compiler Sat Dec 11 11:22:49 2004
7 * The generated files are strongly encouraged to be
8 * compiled as a module for OpenLDAP Software
11 #ifndef _certificate_h_
12 #define _certificate_h_
21 #pragma warning( disable : 4101 )
23 #include "componentlib.h"
24 typedef enum AuthenticationFrameworkAnyId
29 printableStringOid_ANY_ID = 3,
30 printableStringOid2_ANY_ID = 4,
31 printableStringOid3_ANY_ID = 5,
32 printableStringOid4_ANY_ID = 6,
33 printableStringOid5_ANY_ID = 7,
34 printableStringOid6_ANY_ID = 8,
35 printableStringOid7_ANY_ID = 9,
36 iA5StringOid_ANY_ID = 10,
37 octetStringOid_ANY_ID = 11,
38 octetStringOid2_ANY_ID = 12,
39 octetStringOid3_ANY_ID = 13,
40 octetStringOid4_ANY_ID = 14,
41 octetStringOid5_ANY_ID = 15,
42 octetStringOid7_ANY_ID = 17} AuthenticationFrameworkAnyId;
44 void InitAnyAuthenticationFramework();
51 typedef ComponentInt ComponentVersion; /* INTEGER { V1 (0), V2 (1), V3 (2) } */
53 #define MatchingComponentVersion MatchingComponentInt
55 #define ExtractingComponentVersion ExtractingComponentInt
57 #define BDecComponentVersion BDecComponentInt
59 #define GDecComponentVersion GDecComponentInt
62 typedef ComponentInt ComponentCertificateSerialNumber; /* INTEGER */
64 #define MatchingComponentCertificateSerialNumber MatchingComponentInt
66 #define ExtractingComponentCertificateSerialNumber ExtractingComponentInt
68 #define BDecComponentCertificateSerialNumber BDecComponentInt
70 #define GDecComponentCertificateSerialNumber GDecComponentInt
73 typedef ComponentOid ComponentAttributeType; /* OBJECT IDENTIFIER */
75 #define MatchingComponentAttributeType MatchingComponentOid
77 #define ExtractingComponentAttributeType ExtractingComponentOid
79 #define BDecComponentAttributeType BDecComponentOid
81 #define GDecComponentAttributeType GDecComponentOid
84 typedef ComponentBits ComponentUniqueIdentifier; /* BIT STRING */
86 #define MatchingComponentUniqueIdentifier MatchingComponentBits
88 #define ExtractingComponentUniqueIdentifier ExtractingComponentBits
90 #define BDecComponentUniqueIdentifier BDecComponentBits
92 #define GDecComponentUniqueIdentifier GDecComponentBits
95 typedef struct AlgorithmIdentifier /* SEQUENCE */
98 ComponentDesc* comp_desc;
99 struct berval identifier;
100 char id_buf[MAX_IDENTIFIER_LEN];
101 ComponentOid algorithm; /* OBJECT IDENTIFIER */
102 ComponentAnyDefinedBy parameters; /* ANY DEFINED BY algorithm OPTIONAL */
103 } ComponentAlgorithmIdentifier;
105 int MatchingComponentAlgorithmIdentifier PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
108 void* ExtractingComponentAlgorithmIdentifier PROTO (( void* mem_op, ComponentReference *cr, ComponentAlgorithmIdentifier *comp ));
111 int BDecComponentAlgorithmIdentifier PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAlgorithmIdentifier **v, AsnLen *bytesDecoded, int mode));
114 int GDecComponentAlgorithmIdentifier PROTO (( void* mem_op, GenBuf * b, ComponentAlgorithmIdentifier **v, AsnLen *bytesDecoded, int mode));
118 typedef struct Time /* CHOICE */
121 ComponentDesc* comp_desc;
122 struct berval identifier;
123 char id_buf[MAX_IDENTIFIER_LEN];
129 union TimeChoiceUnion
131 ComponentUTCTime* utcTime; /* < unknown type id ?! > */
132 ComponentGeneralizedTime* generalizedTime; /* < unknown type id ?! > */
136 int MatchingComponentTime PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
139 void* ExtractingComponentTime PROTO (( void* mem_op, ComponentReference *cr, ComponentTime *comp ));
142 int BDecComponentTime PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentTime **v, AsnLen *bytesDecoded, int mode));
145 int GDecComponentTime PROTO (( void* mem_op, GenBuf * b, ComponentTime **v, AsnLen *bytesDecoded, int mode));
149 typedef struct Extension /* SEQUENCE */
152 ComponentDesc* comp_desc;
153 struct berval identifier;
154 char id_buf[MAX_IDENTIFIER_LEN];
155 ComponentOid extnID; /* OBJECT IDENTIFIER */
156 ComponentBool* critical; /* BOOLEAN DEFAULT FALSE */
157 ComponentOcts extnValue; /* OCTET STRING */
158 } ComponentExtension;
160 int MatchingComponentExtension PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
163 void* ExtractingComponentExtension PROTO (( void* mem_op, ComponentReference *cr, ComponentExtension *comp ));
166 int BDecComponentExtension PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentExtension **v, AsnLen *bytesDecoded, int mode));
169 int GDecComponentExtension PROTO (( void* mem_op, GenBuf * b, ComponentExtension **v, AsnLen *bytesDecoded, int mode));
173 typedef struct AttributeTypeAndValue /* SEQUENCE */
176 ComponentDesc* comp_desc;
177 struct berval identifier;
178 char id_buf[MAX_IDENTIFIER_LEN];
179 ComponentAttributeType type; /* AttributeType */
180 ComponentAnyDefinedBy value; /* ANY DEFINED BY type */
181 } ComponentAttributeTypeAndValue;
183 int MatchingComponentAttributeTypeAndValue PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
186 void* ExtractingComponentAttributeTypeAndValue PROTO (( void* mem_op, ComponentReference *cr, ComponentAttributeTypeAndValue *comp ));
189 int BDecComponentAttributeTypeAndValue PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
192 int GDecComponentAttributeTypeAndValue PROTO (( void* mem_op, GenBuf * b, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
196 typedef struct Validity /* SEQUENCE */
199 ComponentDesc* comp_desc;
200 struct berval identifier;
201 char id_buf[MAX_IDENTIFIER_LEN];
202 ComponentTime* notBefore; /* Time */
203 ComponentTime* notAfter; /* Time */
206 int MatchingComponentValidity PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
209 void* ExtractingComponentValidity PROTO (( void* mem_op, ComponentReference *cr, ComponentValidity *comp ));
212 int BDecComponentValidity PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentValidity **v, AsnLen *bytesDecoded, int mode));
215 int GDecComponentValidity PROTO (( void* mem_op, GenBuf * b, ComponentValidity **v, AsnLen *bytesDecoded, int mode));
219 typedef struct SubjectPublicKeyInfo /* SEQUENCE */
222 ComponentDesc* comp_desc;
223 struct berval identifier;
224 char id_buf[MAX_IDENTIFIER_LEN];
225 ComponentAlgorithmIdentifier* algorithm; /* AlgorithmIdentifier */
226 ComponentBits subjectPublicKey; /* BIT STRING */
227 } ComponentSubjectPublicKeyInfo;
229 int MatchingComponentSubjectPublicKeyInfo PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
232 void* ExtractingComponentSubjectPublicKeyInfo PROTO (( void* mem_op, ComponentReference *cr, ComponentSubjectPublicKeyInfo *comp ));
235 int BDecComponentSubjectPublicKeyInfo PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentSubjectPublicKeyInfo **v, AsnLen *bytesDecoded, int mode));
238 int GDecComponentSubjectPublicKeyInfo PROTO (( void* mem_op, GenBuf * b, ComponentSubjectPublicKeyInfo **v, AsnLen *bytesDecoded, int mode));
242 typedef ComponentList ComponentExtensions; /* SEQUENCE SIZE 1..MAX OF Extension */
244 int MatchingComponentExtensions PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
247 void* ExtractingComponentExtensions PROTO (( void* mem_op, ComponentReference *cr, ComponentExtensions *comp ));
250 int BDecComponentExtensions PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentExtensions **v, AsnLen *bytesDecoded, int mode));
253 int GDecComponentExtensions PROTO (( void* mem_op, GenBuf * b, ComponentExtensions **v, AsnLen *bytesDecoded, int mode));
257 typedef ComponentList ComponentRelativeDistinguishedName; /* SET OF AttributeTypeAndValue */
259 int MatchingComponentRelativeDistinguishedName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
262 void* ExtractingComponentRelativeDistinguishedName PROTO (( void* mem_op, ComponentReference *cr, ComponentRelativeDistinguishedName *comp ));
265 int BDecComponentRelativeDistinguishedName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
268 int GDecComponentRelativeDistinguishedName PROTO (( void* mem_op, GenBuf * b, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
272 typedef ComponentList ComponentRDNSequence; /* SEQUENCE OF RelativeDistinguishedName */
274 int MatchingComponentRDNSequence PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
277 void* ExtractingComponentRDNSequence PROTO (( void* mem_op, ComponentReference *cr, ComponentRDNSequence *comp ));
280 int BDecComponentRDNSequence PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
283 int GDecComponentRDNSequence PROTO (( void* mem_op, GenBuf * b, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
287 typedef struct Name /* CHOICE */
290 ComponentDesc* comp_desc;
291 struct berval identifier;
292 char id_buf[MAX_IDENTIFIER_LEN];
297 union NameChoiceUnion
299 ComponentRDNSequence* rdnSequence; /* RDNSequence */
303 int MatchingComponentName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
306 void* ExtractingComponentName PROTO (( void* mem_op, ComponentReference *cr, ComponentName *comp ));
309 int BDecComponentName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentName **v, AsnLen *bytesDecoded, int mode));
312 int GDecComponentName PROTO (( void* mem_op, GenBuf * b, ComponentName **v, AsnLen *bytesDecoded, int mode));
316 typedef struct TBSCertificate /* SEQUENCE */
319 ComponentDesc* comp_desc;
320 struct berval identifier;
321 char id_buf[MAX_IDENTIFIER_LEN];
322 ComponentVersion* version; /* [0] Version DEFAULT v1 */
323 ComponentCertificateSerialNumber serialNumber; /* CertificateSerialNumber */
324 ComponentAlgorithmIdentifier* signature; /* AlgorithmIdentifier */
325 ComponentName* issuer; /* Name */
326 ComponentValidity* validity; /* Validity */
327 ComponentName* subject; /* Name */
328 ComponentSubjectPublicKeyInfo* subjectPublicKeyInfo; /* SubjectPublicKeyInfo */
329 ComponentUniqueIdentifier issuerUniqueIdentifier; /* [1] IMPLICIT UniqueIdentifier OPTIONAL */
330 ComponentUniqueIdentifier subjectUniqueIdentifier; /* [2] IMPLICIT UniqueIdentifier OPTIONAL */
331 ComponentExtensions* extensions; /* [3] Extensions OPTIONAL */
332 } ComponentTBSCertificate;
334 int MatchingComponentTBSCertificate PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
337 void* ExtractingComponentTBSCertificate PROTO (( void* mem_op, ComponentReference *cr, ComponentTBSCertificate *comp ));
340 int BDecComponentTBSCertificate PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentTBSCertificate **v, AsnLen *bytesDecoded, int mode));
343 int GDecComponentTBSCertificate PROTO (( void* mem_op, GenBuf * b, ComponentTBSCertificate **v, AsnLen *bytesDecoded, int mode));
347 typedef struct Certificate /* SEQUENCE */
350 ComponentDesc* comp_desc;
351 struct berval identifier;
352 char id_buf[MAX_IDENTIFIER_LEN];
353 ComponentTBSCertificate* toBeSigned; /* TBSCertificate */
354 ComponentAlgorithmIdentifier* signatureAlgorithm; /* AlgorithmIdentifier */
355 ComponentBits signature; /* BIT STRING */
356 } ComponentCertificate;
358 int MatchingComponentCertificate PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
361 void* ExtractingComponentCertificate PROTO (( void* mem_op, ComponentReference *cr, ComponentCertificate *comp ));
364 int BDecComponentCertificate PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentCertificate **v, AsnLen *bytesDecoded, int mode));
367 int GDecComponentCertificate PROTO (( void* mem_op, GenBuf * b, ComponentCertificate **v, AsnLen *bytesDecoded, int mode));
371 /* ========== Object Declarations ========== */
374 /* ========== Object Set Declarations ========== */
379 #endif /* conditional include of certificate.h */