pkix_pl_certpolicymap.h (1164B)
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_certpolicymap.h 6 * 7 * CertPolicyMap Object Definitions 8 * 9 */ 10 11 #ifndef _PKIX_PL_CERTPOLICYMAP_H 12 #define _PKIX_PL_CERTPOLICYMAP_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 mapping extension as 22 * described in Section 4.2.1.6 of RFC3280. 23 * 24 * PolicyMappings ::= SEQUENCE SIZE (1..MAX) OF SEQUENCE { 25 * issuerDomainPolicy CertPolicyId, 26 * subjectDomainPolicy CertPolicyId } 27 * 28 */ 29 struct PKIX_PL_CertPolicyMapStruct { 30 PKIX_PL_OID *issuerDomainPolicy; 31 PKIX_PL_OID *subjectDomainPolicy; 32 }; 33 34 PKIX_Error * 35 pkix_pl_CertPolicyMap_Create( 36 PKIX_PL_OID *issuerDomainPolicy, 37 PKIX_PL_OID *subjectDomainPolicy, 38 PKIX_PL_CertPolicyMap **pObject, 39 void *plContext); 40 41 PKIX_Error * 42 pkix_pl_CertPolicyMap_RegisterSelf( 43 void *plContext); 44 45 #ifdef __cplusplus 46 } 47 #endif 48 49 #endif /* _PKIX_PL_CERTPOLICYMAP_H */