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_valresult.h
6  *
7  * ValidateResult Object Type Definition
8  *
9  */
10 
11 #ifndef _PKIX_VALIDATERESULT_H
12 #define _PKIX_VALIDATERESULT_H
13 
14 #include "pkix_tools.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 struct PKIX_ValidateResultStruct {
21         PKIX_PL_PublicKey *pubKey;
22         PKIX_TrustAnchor *anchor;
23         PKIX_PolicyNode *policyTree;
24 };
25 
26 /* see source file for function documentation */
27 
28 PKIX_Error *
29 pkix_ValidateResult_Create(
30         PKIX_PL_PublicKey *pubKey,
31         PKIX_TrustAnchor *anchor,
32         PKIX_PolicyNode *policyTree,
33         PKIX_ValidateResult **pResult,
34         void *plContext);
35 
36 PKIX_Error *pkix_ValidateResult_RegisterSelf(void *plContext);
37 
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif /* _PKIX_VALIDATERESULT_H */
44