pkix_pl_certpolicyinfo.h (1204B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 /* 5 * pkix_pl_certpolicyinfo.h 6 * 7 * PolicyInfo Type Definitions 8 * 9 */ 10 11 #ifndef _PKIX_PL_POLICYINFO_H 12 #define _PKIX_PL_POLICYINFO_H 13 14 #include "pkix_pl_common.h" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 /* 21 * This structure reflects the contents of the policy info extension as 22 * described in Section 4.2.1.5 of RFC3280. 23 * 24 * PolicyInformation ::= SEQUENCE { 25 * policyIdentifier CertPolicyId, 26 * PolicyQualifiers SEQUENCE SIZE (1..MAX) OF 27 * PolicyQualifierInfo OPTIONAL } 28 * 29 */ 30 struct PKIX_PL_CertPolicyInfoStruct { 31 PKIX_PL_OID *cpID; 32 PKIX_List *policyQualifiers; /* LIST of PKIX_PL_CertPolicyQualifier */ 33 }; 34 35 PKIX_Error * 36 pkix_pl_CertPolicyInfo_Create( 37 PKIX_PL_OID *oid, 38 PKIX_List *qualifiers, 39 PKIX_PL_CertPolicyInfo **pObject, 40 void *plContext); 41 42 PKIX_Error * 43 pkix_pl_CertPolicyInfo_RegisterSelf( 44 void *plContext); 45 46 #ifdef __cplusplus 47 } 48 #endif 49 50 #endif /* _PKIX_PL_POLICYINFO_H */