Optimize sha/asm/keccak1600-avx2.pl.
[openssl.git] / crypto / x509v3 / v3_admis.h
1 /*
2  * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #ifndef HEADER_V3_ADMISSION_H
11 # define HEADER_V3_ADMISSION_H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 typedef struct NamingAuthority_st {
18     ASN1_OBJECT* namingAuthorityId;
19     ASN1_IA5STRING* namingAuthorityUrl;
20     ASN1_STRING* namingAuthorityText;          /* i.e. DIRECTORYSTRING */
21 } NAMING_AUTHORITY;
22
23 typedef struct ProfessionInfo_st {
24     NAMING_AUTHORITY* namingAuthority;
25     STACK_OF(ASN1_STRING)* professionItems;    /* i.e. DIRECTORYSTRING */
26     STACK_OF(ASN1_OBJECT)* professionOIDs;
27     ASN1_PRINTABLESTRING* registrationNumber;
28     ASN1_OCTET_STRING* addProfessionInfo;
29 } PROFESSION_INFO;
30
31 typedef struct Admissions_st {
32     GENERAL_NAME* admissionAuthority;
33     NAMING_AUTHORITY* namingAuthority;
34     STACK_OF(PROFESSION_INFO)* professionInfos;
35 } ADMISSIONS;
36
37 typedef struct AdmissionSyntax_st {
38     GENERAL_NAME* admissionAuthority;
39     STACK_OF(ADMISSIONS)* contentsOfAdmissions;
40 } ADMISSION_SYNTAX;
41
42 DECLARE_ASN1_ITEM(ADMISSIONS)
43 DECLARE_ASN1_ITEM(NAMING_AUTHORITY)
44 DECLARE_ASN1_ITEM(PROFESSION_INFO)
45 DECLARE_ASN1_ITEM(ADMISSION_SYNTAX)
46
47 DECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY)
48 DECLARE_ASN1_FUNCTIONS(PROFESSION_INFO)
49 DECLARE_ASN1_FUNCTIONS(ADMISSIONS)
50 DECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX)
51
52 DEFINE_STACK_OF(ADMISSIONS)
53 DEFINE_STACK_OF(PROFESSION_INFO)
54 DEFINE_STACK_OF(ASN1_STRING)
55
56 #ifdef  __cplusplus
57 }
58 #endif
59 #endif