Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | /* |
michael@0 | 5 | * pkix_policynode.h |
michael@0 | 6 | * |
michael@0 | 7 | * PolicyNode Type Definitions |
michael@0 | 8 | * |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | #ifndef _PKIX_POLICYNODE_H |
michael@0 | 12 | #define _PKIX_POLICYNODE_H |
michael@0 | 13 | |
michael@0 | 14 | #include "pkix_tools.h" |
michael@0 | 15 | |
michael@0 | 16 | #ifdef __cplusplus |
michael@0 | 17 | extern "C" { |
michael@0 | 18 | #endif |
michael@0 | 19 | |
michael@0 | 20 | /* This structure reflects the contents of a policy node... |
michael@0 | 21 | */ |
michael@0 | 22 | struct PKIX_PolicyNodeStruct { |
michael@0 | 23 | PKIX_PL_OID *validPolicy; |
michael@0 | 24 | PKIX_List *qualifierSet; /* CertPolicyQualifiers */ |
michael@0 | 25 | PKIX_Boolean criticality; |
michael@0 | 26 | PKIX_List *expectedPolicySet; /* OIDs */ |
michael@0 | 27 | PKIX_PolicyNode *parent; |
michael@0 | 28 | PKIX_List *children; /* PolicyNodes */ |
michael@0 | 29 | PKIX_UInt32 depth; |
michael@0 | 30 | }; |
michael@0 | 31 | |
michael@0 | 32 | PKIX_Error * |
michael@0 | 33 | pkix_SinglePolicyNode_ToString( |
michael@0 | 34 | PKIX_PolicyNode *node, |
michael@0 | 35 | PKIX_PL_String **pString, |
michael@0 | 36 | void *plContext); |
michael@0 | 37 | |
michael@0 | 38 | PKIX_Error * |
michael@0 | 39 | pkix_PolicyNode_GetChildrenMutable( |
michael@0 | 40 | PKIX_PolicyNode *node, |
michael@0 | 41 | PKIX_List **pChildren, /* PolicyNodes */ |
michael@0 | 42 | void *plContext); |
michael@0 | 43 | |
michael@0 | 44 | PKIX_Error * |
michael@0 | 45 | pkix_PolicyNode_Create( |
michael@0 | 46 | PKIX_PL_OID *validPolicy, |
michael@0 | 47 | PKIX_List *qualifierSet, /* CertPolicyQualifiers */ |
michael@0 | 48 | PKIX_Boolean criticality, |
michael@0 | 49 | PKIX_List *expectedPolicySet, /* OIDs */ |
michael@0 | 50 | PKIX_PolicyNode **pObject, |
michael@0 | 51 | void *plContext); |
michael@0 | 52 | |
michael@0 | 53 | PKIX_Error * |
michael@0 | 54 | pkix_PolicyNode_AddToParent( |
michael@0 | 55 | PKIX_PolicyNode *parentNode, |
michael@0 | 56 | PKIX_PolicyNode *child, |
michael@0 | 57 | void *plContext); |
michael@0 | 58 | |
michael@0 | 59 | PKIX_Error * |
michael@0 | 60 | pkix_PolicyNode_Prune( |
michael@0 | 61 | PKIX_PolicyNode *node, |
michael@0 | 62 | PKIX_UInt32 depth, |
michael@0 | 63 | PKIX_Boolean *pDelete, |
michael@0 | 64 | void *plContext); |
michael@0 | 65 | |
michael@0 | 66 | PKIX_Error * |
michael@0 | 67 | pkix_PolicyNode_RegisterSelf( |
michael@0 | 68 | void *plContext); |
michael@0 | 69 | |
michael@0 | 70 | #ifdef __cplusplus |
michael@0 | 71 | } |
michael@0 | 72 | #endif |
michael@0 | 73 | |
michael@0 | 74 | #endif /* _PKIX_POLICYNODE_H */ |