2 * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
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
10 #ifndef HEADER_V3_ADMISSION_H
11 # define HEADER_V3_ADMISSION_H
17 typedef struct NamingAuthority_st {
18 ASN1_OBJECT* namingAuthorityId;
19 ASN1_IA5STRING* namingAuthorityUrl;
20 ASN1_STRING* namingAuthorityText; /* i.e. DIRECTORYSTRING */
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;
31 typedef struct Admissions_st {
32 GENERAL_NAME* admissionAuthority;
33 NAMING_AUTHORITY* namingAuthority;
34 STACK_OF(PROFESSION_INFO)* professionInfos;
37 typedef struct AdmissionSyntax_st {
38 GENERAL_NAME* admissionAuthority;
39 STACK_OF(ADMISSIONS)* contentsOfAdmissions;
42 DECLARE_ASN1_ITEM(ADMISSIONS)
43 DECLARE_ASN1_ITEM(NAMING_AUTHORITY)
44 DECLARE_ASN1_ITEM(PROFESSION_INFO)
45 DECLARE_ASN1_ITEM(ADMISSION_SYNTAX)
47 DECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY)
48 DECLARE_ASN1_FUNCTIONS(PROFESSION_INFO)
49 DECLARE_ASN1_FUNCTIONS(ADMISSIONS)
50 DECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX)
52 DEFINE_STACK_OF(ADMISSIONS)
53 DEFINE_STACK_OF(PROFESSION_INFO)
54 DEFINE_STACK_OF(ASN1_STRING)