summaryrefslogtreecommitdiff
path: root/lib/libpkix/pkix_pl_nss/pki/pkix_pl_certpolicyinfo.h
blob: 5c324e6cd20e0bddc705d15d894a2aa4a807b372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
 * pkix_pl_certpolicyinfo.h
 *
 * PolicyInfo Type Definitions
 *
 */

#ifndef _PKIX_PL_POLICYINFO_H
#define _PKIX_PL_POLICYINFO_H

#include "pkix_pl_common.h"

#ifdef __cplusplus
extern "C" {
#endif

/*
 * This structure reflects the contents of the policy info extension as
 * described in Section 4.2.1.5 of RFC3280.
 *
 *  PolicyInformation ::= SEQUENCE {
 *      policyIdentifier        CertPolicyId,
 *      PolicyQualifiers        SEQUENCE SIZE (1..MAX) OF
 *                                  PolicyQualifierInfo OPTIONAL }
 *
 */
struct PKIX_PL_CertPolicyInfoStruct {
        PKIX_PL_OID *cpID;
        PKIX_List *policyQualifiers; /* LIST of PKIX_PL_CertPolicyQualifier */
};

PKIX_Error *
pkix_pl_CertPolicyInfo_Create(
        PKIX_PL_OID *oid,
        PKIX_List *qualifiers,
        PKIX_PL_CertPolicyInfo **pObject,
        void *plContext);

PKIX_Error *
pkix_pl_CertPolicyInfo_RegisterSelf(
        void *plContext);

#ifdef __cplusplus
}
#endif

#endif /* _PKIX_PL_POLICYINFO_H */