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