1e1051a39Sopenharmony_ci/*
2e1051a39Sopenharmony_ci * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
3e1051a39Sopenharmony_ci *
4e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
5e1051a39Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at
7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html
8e1051a39Sopenharmony_ci */
9e1051a39Sopenharmony_ci
10e1051a39Sopenharmony_ci#ifndef OSSL_CRYPTO_X509_V3_ADMIS_H
11e1051a39Sopenharmony_ci# define OSSL_CRYPTO_X509_V3_ADMIS_H
12e1051a39Sopenharmony_ci
13e1051a39Sopenharmony_cistruct NamingAuthority_st {
14e1051a39Sopenharmony_ci    ASN1_OBJECT* namingAuthorityId;
15e1051a39Sopenharmony_ci    ASN1_IA5STRING* namingAuthorityUrl;
16e1051a39Sopenharmony_ci    ASN1_STRING* namingAuthorityText;          /* i.e. DIRECTORYSTRING */
17e1051a39Sopenharmony_ci};
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_cistruct ProfessionInfo_st {
20e1051a39Sopenharmony_ci    NAMING_AUTHORITY* namingAuthority;
21e1051a39Sopenharmony_ci    STACK_OF(ASN1_STRING)* professionItems;    /* i.e. DIRECTORYSTRING */
22e1051a39Sopenharmony_ci    STACK_OF(ASN1_OBJECT)* professionOIDs;
23e1051a39Sopenharmony_ci    ASN1_PRINTABLESTRING* registrationNumber;
24e1051a39Sopenharmony_ci    ASN1_OCTET_STRING* addProfessionInfo;
25e1051a39Sopenharmony_ci};
26e1051a39Sopenharmony_ci
27e1051a39Sopenharmony_cistruct Admissions_st {
28e1051a39Sopenharmony_ci    GENERAL_NAME* admissionAuthority;
29e1051a39Sopenharmony_ci    NAMING_AUTHORITY* namingAuthority;
30e1051a39Sopenharmony_ci    STACK_OF(PROFESSION_INFO)* professionInfos;
31e1051a39Sopenharmony_ci};
32e1051a39Sopenharmony_ci
33e1051a39Sopenharmony_cistruct AdmissionSyntax_st {
34e1051a39Sopenharmony_ci    GENERAL_NAME* admissionAuthority;
35e1051a39Sopenharmony_ci    STACK_OF(ADMISSIONS)* contentsOfAdmissions;
36e1051a39Sopenharmony_ci};
37e1051a39Sopenharmony_ci
38e1051a39Sopenharmony_ci#endif
39