Back to index

openldap  2.4.31
authorityKeyIdentifier.h
Go to the documentation of this file.
00001 
00002 #include "asn-incl.h"
00003 /*
00004  *    authorityKeyIdentifier.h
00005  *    "AuthorityKeyIdentifierDefinition" ASN.1 module encode/decode/extracting/matching/free C src.
00006  *    This file was generated by modified eSMACC compiler Sat Dec 11 10:15:39 2004
00007  *    The generated files are strongly encouraged to be
00008  *    compiled as a module for OpenLDAP Software
00009  */
00010 
00011 #ifndef _authorityKeyIdentifier_h_
00012 #define _authorityKeyIdentifier_h_
00013 
00014 
00015 
00016 
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 #ifdef _WIN32
00021 #pragma warning( disable : 4101 )
00022 #endif
00023 #include "componentlib.h"
00024 typedef ComponentOcts ComponentKeyIdentifier; /* OCTET STRING */
00025 
00026 #define MatchingComponentKeyIdentifier MatchingComponentOcts
00027 
00028 #define ExtractingComponentKeyIdentifier ExtractingComponentOcts
00029 
00030 #define BDecComponentKeyIdentifier BDecComponentOcts
00031 
00032 #define GDecComponentKeyIdentifier GDecComponentOcts
00033 
00034 
00035 typedef ComponentInt ComponentCertificateSerialNumber; /* INTEGER */
00036 
00037 #define MatchingComponentCertificateSerialNumber MatchingComponentInt
00038 
00039 #define ExtractingComponentCertificateSerialNumber ExtractingComponentInt
00040 
00041 #define BDecComponentCertificateSerialNumber BDecComponentInt
00042 
00043 #define GDecComponentCertificateSerialNumber GDecComponentInt
00044 
00045 
00046 typedef struct OtherName /* SEQUENCE */
00047 {
00048        Syntax* syntax;
00049        ComponentDesc* comp_desc;
00050        struct berval identifier;
00051        char id_buf[MAX_IDENTIFIER_LEN];
00052        ComponentOid type_id; /* OBJECT IDENTIFIER */
00053        ComponentAnyDefinedBy value; /* [0] EXPLICIT ANY DEFINED BY type-id */
00054 } ComponentOtherName;
00055 
00056 int MatchingComponentOtherName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00057 
00058 
00059 void* ExtractingComponentOtherName PROTO (( void* mem_op, ComponentReference *cr, ComponentOtherName *comp ));
00060 
00061 
00062 int BDecComponentOtherName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentOtherName **v, AsnLen *bytesDecoded, int mode));
00063 
00064 
00065 int GDecComponentOtherName PROTO (( void* mem_op, GenBuf * b, ComponentOtherName **v, AsnLen *bytesDecoded, int mode));
00066 
00067 
00068 
00069 typedef struct ORAddress /* SEQUENCE */
00070 {
00071        Syntax* syntax;
00072        ComponentDesc* comp_desc;
00073        struct berval identifier;
00074        char id_buf[MAX_IDENTIFIER_LEN];
00075        ComponentOid type_id; /* OBJECT IDENTIFIER */
00076        ComponentAnyDefinedBy value; /* ANY DEFINED BY type-id */
00077        ComponentOcts extension; /* OCTET STRING OPTIONAL */
00078 } ComponentORAddress;
00079 
00080 int MatchingComponentORAddress PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00081 
00082 
00083 void* ExtractingComponentORAddress PROTO (( void* mem_op, ComponentReference *cr, ComponentORAddress *comp ));
00084 
00085 
00086 int BDecComponentORAddress PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentORAddress **v, AsnLen *bytesDecoded, int mode));
00087 
00088 
00089 int GDecComponentORAddress PROTO (( void* mem_op, GenBuf * b, ComponentORAddress **v, AsnLen *bytesDecoded, int mode));
00090 
00091 
00092 
00093 typedef struct AttributeTypeAndValue /* SEQUENCE */
00094 {
00095        Syntax* syntax;
00096        ComponentDesc* comp_desc;
00097        struct berval identifier;
00098        char id_buf[MAX_IDENTIFIER_LEN];
00099        ComponentOid type; /* OBJECT IDENTIFIER */
00100        ComponentAnyDefinedBy value; /* ANY DEFINED BY type */
00101 } ComponentAttributeTypeAndValue;
00102 
00103 int MatchingComponentAttributeTypeAndValue PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00104 
00105 
00106 void* ExtractingComponentAttributeTypeAndValue PROTO (( void* mem_op, ComponentReference *cr, ComponentAttributeTypeAndValue *comp ));
00107 
00108 
00109 int BDecComponentAttributeTypeAndValue PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
00110 
00111 
00112 int GDecComponentAttributeTypeAndValue PROTO (( void* mem_op, GenBuf * b, ComponentAttributeTypeAndValue **v, AsnLen *bytesDecoded, int mode));
00113 
00114 
00115 
00116 typedef struct DirectoryString /* CHOICE */
00117 {
00118        Syntax* syntax;
00119        ComponentDesc* comp_desc;
00120        struct berval identifier;
00121        char id_buf[MAX_IDENTIFIER_LEN];
00122     enum DirectoryStringChoiceId
00123     {
00124         DIRECTORYSTRING_TELETEXSTRING,
00125         DIRECTORYSTRING_PRINTABLESTRING,
00126         DIRECTORYSTRING_UNIVERSALSTRING,
00127         DIRECTORYSTRING_UTF8STRING,
00128         DIRECTORYSTRING_BMPSTRING
00129     } choiceId;
00130     union DirectoryStringChoiceUnion
00131     {
00132        ComponentTeletexString* teletexString; /* TeletexString SIZE 1..MAX */
00133        ComponentPrintableString* printableString; /* PrintableString SIZE 1..MAX */
00134        ComponentUniversalString* universalString; /* UniversalString SIZE 1..MAX */
00135        ComponentUTF8String* utf8String; /* UTF8String SIZE 1..MAX */
00136        ComponentBMPString* bmpString; /* BMPString SIZE 1..MAX */
00137     } a;
00138 } ComponentDirectoryString;
00139 
00140 int MatchingComponentDirectoryString PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00141 
00142 
00143 void* ExtractingComponentDirectoryString PROTO (( void* mem_op, ComponentReference *cr, ComponentDirectoryString *comp ));
00144 
00145 
00146 int BDecComponentDirectoryString PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentDirectoryString **v, AsnLen *bytesDecoded, int mode));
00147 
00148 
00149 int GDecComponentDirectoryString PROTO (( void* mem_op, GenBuf * b, ComponentDirectoryString **v, AsnLen *bytesDecoded, int mode));
00150 
00151 
00152 
00153 typedef struct EDIPartyName /* SEQUENCE */
00154 {
00155        Syntax* syntax;
00156        ComponentDesc* comp_desc;
00157        struct berval identifier;
00158        char id_buf[MAX_IDENTIFIER_LEN];
00159        ComponentDirectoryString* nameAssigner; /* [0] DirectoryString OPTIONAL */
00160        ComponentDirectoryString* partyName; /* [1] DirectoryString */
00161 } ComponentEDIPartyName;
00162 
00163 int MatchingComponentEDIPartyName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00164 
00165 
00166 void* ExtractingComponentEDIPartyName PROTO (( void* mem_op, ComponentReference *cr, ComponentEDIPartyName *comp ));
00167 
00168 
00169 int BDecComponentEDIPartyName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentEDIPartyName **v, AsnLen *bytesDecoded, int mode));
00170 
00171 
00172 int GDecComponentEDIPartyName PROTO (( void* mem_op, GenBuf * b, ComponentEDIPartyName **v, AsnLen *bytesDecoded, int mode));
00173 
00174 
00175 
00176 typedef ComponentList ComponentRelativeDistinguishedName; /* SET OF AttributeTypeAndValue */
00177 
00178 int MatchingComponentRelativeDistinguishedName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00179 
00180 
00181 void* ExtractingComponentRelativeDistinguishedName PROTO (( void* mem_op, ComponentReference *cr, ComponentRelativeDistinguishedName *comp ));
00182 
00183 
00184 int BDecComponentRelativeDistinguishedName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
00185 
00186 
00187 int GDecComponentRelativeDistinguishedName PROTO (( void* mem_op, GenBuf * b, ComponentRelativeDistinguishedName **v, AsnLen *bytesDecoded, int mode));
00188 
00189 
00190 
00191 typedef ComponentList ComponentRDNSequence; /* SEQUENCE OF RelativeDistinguishedName */
00192 
00193 int MatchingComponentRDNSequence PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00194 
00195 
00196 void* ExtractingComponentRDNSequence PROTO (( void* mem_op, ComponentReference *cr, ComponentRDNSequence *comp ));
00197 
00198 
00199 int BDecComponentRDNSequence PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
00200 
00201 
00202 int GDecComponentRDNSequence PROTO (( void* mem_op, GenBuf * b, ComponentRDNSequence **v, AsnLen *bytesDecoded, int mode));
00203 
00204 
00205 
00206 typedef struct Name /* CHOICE */
00207 {
00208        Syntax* syntax;
00209        ComponentDesc* comp_desc;
00210        struct berval identifier;
00211        char id_buf[MAX_IDENTIFIER_LEN];
00212     enum NameChoiceId
00213     {
00214         NAME_RDNSEQUENCE
00215     } choiceId;
00216     union NameChoiceUnion
00217     {
00218        ComponentRDNSequence* rdnSequence; /* RDNSequence */
00219     } a;
00220 } ComponentName;
00221 
00222 int MatchingComponentName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00223 
00224 
00225 void* ExtractingComponentName PROTO (( void* mem_op, ComponentReference *cr, ComponentName *comp ));
00226 
00227 
00228 int BDecComponentName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentName **v, AsnLen *bytesDecoded, int mode));
00229 
00230 
00231 int GDecComponentName PROTO (( void* mem_op, GenBuf * b, ComponentName **v, AsnLen *bytesDecoded, int mode));
00232 
00233 
00234 
00235 typedef struct GeneralName /* CHOICE */
00236 {
00237        Syntax* syntax;
00238        ComponentDesc* comp_desc;
00239        struct berval identifier;
00240        char id_buf[MAX_IDENTIFIER_LEN];
00241     enum GeneralNameChoiceId
00242     {
00243         GENERALNAME_OTHERNAME,
00244         GENERALNAME_RFC822NAME,
00245         GENERALNAME_DNSNAME,
00246         GENERALNAME_X400ADDRESS,
00247         GENERALNAME_DIRECTORYNAME,
00248         GENERALNAME_EDIPARTYNAME,
00249         GENERALNAME_UNIFORMRESOURCEIDENTIFIER,
00250         GENERALNAME_IPADDRESS,
00251         GENERALNAME_REGISTEREDID
00252     } choiceId;
00253     union GeneralNameChoiceUnion
00254     {
00255        ComponentOtherName* otherName; /* [0] OtherName */
00256        ComponentIA5String* rfc822Name; /* [1] IA5String */
00257        ComponentIA5String* dNSName; /* [2] IA5String */
00258        ComponentORAddress* x400Address; /* [3] ORAddress */
00259        ComponentName* directoryName; /* [4] Name */
00260        ComponentEDIPartyName* ediPartyName; /* [5] EDIPartyName */
00261        ComponentIA5String* uniformResourceIdentifier; /* [6] IA5String */
00262        ComponentOcts* iPAddress; /* [7] OCTET STRING */
00263        ComponentOid* registeredID; /* [8] OBJECT IDENTIFIER */
00264     } a;
00265 } ComponentGeneralName;
00266 
00267 int MatchingComponentGeneralName PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00268 
00269 
00270 void* ExtractingComponentGeneralName PROTO (( void* mem_op, ComponentReference *cr, ComponentGeneralName *comp ));
00271 
00272 
00273 int BDecComponentGeneralName PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentGeneralName **v, AsnLen *bytesDecoded, int mode));
00274 
00275 
00276 int GDecComponentGeneralName PROTO (( void* mem_op, GenBuf * b, ComponentGeneralName **v, AsnLen *bytesDecoded, int mode));
00277 
00278 
00279 
00280 typedef ComponentList ComponentGeneralNames; /* SEQUENCE SIZE 1..MAX OF GeneralName */
00281 
00282 int MatchingComponentGeneralNames PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00283 
00284 
00285 void* ExtractingComponentGeneralNames PROTO (( void* mem_op, ComponentReference *cr, ComponentGeneralNames *comp ));
00286 
00287 
00288 int BDecComponentGeneralNames PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentGeneralNames **v, AsnLen *bytesDecoded, int mode));
00289 
00290 
00291 int GDecComponentGeneralNames PROTO (( void* mem_op, GenBuf * b, ComponentGeneralNames **v, AsnLen *bytesDecoded, int mode));
00292 
00293 
00294 
00295 typedef struct AuthorityKeyIdentifier /* SEQUENCE */
00296 {
00297        Syntax* syntax;
00298        ComponentDesc* comp_desc;
00299        struct berval identifier;
00300        char id_buf[MAX_IDENTIFIER_LEN];
00301        ComponentKeyIdentifier keyIdentifier; /* [0] KeyIdentifier OPTIONAL */
00302        ComponentGeneralNames* authorityCertIssuer; /* [1] GeneralNames OPTIONAL */
00303        ComponentCertificateSerialNumber* authorityCertSerialNumber; /* [2] CertificateSerialNumber OPTIONAL */
00304 } ComponentAuthorityKeyIdentifier;
00305 
00306 int MatchingComponentAuthorityKeyIdentifier PROTO (( char *oid, ComponentSyntaxInfo *, ComponentSyntaxInfo *v2 ));
00307 
00308 
00309 void* ExtractingComponentAuthorityKeyIdentifier PROTO (( void* mem_op, ComponentReference *cr, ComponentAuthorityKeyIdentifier *comp ));
00310 
00311 
00312 int BDecComponentAuthorityKeyIdentifier PROTO ((void* mem_op, GenBuf * b, AsnTag tagId0, AsnLen elmtLen0, ComponentAuthorityKeyIdentifier **v, AsnLen *bytesDecoded, int mode));
00313 
00314 
00315 int GDecComponentAuthorityKeyIdentifier PROTO (( void* mem_op, GenBuf * b, ComponentAuthorityKeyIdentifier **v, AsnLen *bytesDecoded, int mode));
00316 
00317 
00318 
00319 /* ========== Object Declarations ========== */
00320 
00321 
00322 /* ========== Object Set Declarations ========== */
00323 #ifdef __cplusplus
00324 extern "C" {
00325 #endif
00326 
00327 #endif /* conditional include of authorityKeyIdentifier.h */