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_verifynode.h |
michael@0 | 6 | * |
michael@0 | 7 | * VerifyNode Type Definitions |
michael@0 | 8 | * |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | #ifndef _PKIX_VERIFYNODE_H |
michael@0 | 12 | #define _PKIX_VERIFYNODE_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 verify node... |
michael@0 | 21 | */ |
michael@0 | 22 | struct PKIX_VerifyNodeStruct { |
michael@0 | 23 | PKIX_PL_Cert *verifyCert; |
michael@0 | 24 | PKIX_List *children; /* VerifyNodes */ |
michael@0 | 25 | PKIX_UInt32 depth; |
michael@0 | 26 | PKIX_Error *error; |
michael@0 | 27 | }; |
michael@0 | 28 | |
michael@0 | 29 | PKIX_Error * |
michael@0 | 30 | pkix_SingleVerifyNode_ToString( |
michael@0 | 31 | PKIX_VerifyNode *node, |
michael@0 | 32 | PKIX_PL_String **pString, |
michael@0 | 33 | void *plContext); |
michael@0 | 34 | |
michael@0 | 35 | PKIX_Error * |
michael@0 | 36 | pkix_VerifyNode_Create( |
michael@0 | 37 | PKIX_PL_Cert *verifyCert, |
michael@0 | 38 | PKIX_UInt32 depth, |
michael@0 | 39 | PKIX_Error *error, |
michael@0 | 40 | PKIX_VerifyNode **pObject, |
michael@0 | 41 | void *plContext); |
michael@0 | 42 | |
michael@0 | 43 | PKIX_Error * |
michael@0 | 44 | pkix_VerifyNode_AddToChain( |
michael@0 | 45 | PKIX_VerifyNode *parentNode, |
michael@0 | 46 | PKIX_VerifyNode *child, |
michael@0 | 47 | void *plContext); |
michael@0 | 48 | |
michael@0 | 49 | PKIX_Error * |
michael@0 | 50 | pkix_VerifyNode_AddToTree( |
michael@0 | 51 | PKIX_VerifyNode *parentNode, |
michael@0 | 52 | PKIX_VerifyNode *child, |
michael@0 | 53 | void *plContext); |
michael@0 | 54 | |
michael@0 | 55 | PKIX_Error * |
michael@0 | 56 | pkix_VerifyNode_SetError( |
michael@0 | 57 | PKIX_VerifyNode *node, |
michael@0 | 58 | PKIX_Error *error, |
michael@0 | 59 | void *plContext); |
michael@0 | 60 | |
michael@0 | 61 | PKIX_Error * |
michael@0 | 62 | pkix_VerifyNode_RegisterSelf( |
michael@0 | 63 | void *plContext); |
michael@0 | 64 | |
michael@0 | 65 | PKIX_Error * |
michael@0 | 66 | pkix_VerifyNode_FindError( |
michael@0 | 67 | PKIX_VerifyNode *node, |
michael@0 | 68 | PKIX_Error **error, |
michael@0 | 69 | void *plContext); |
michael@0 | 70 | |
michael@0 | 71 | #ifdef __cplusplus |
michael@0 | 72 | } |
michael@0 | 73 | #endif |
michael@0 | 74 | |
michael@0 | 75 | #endif /* _PKIX_VERIFYNODE_H */ |