~ubuntu-branches/ubuntu/maverick/nss/maverick

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/libpkix/pkix/checker/pkix_ocspchecker.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-16 13:23:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616132347-311ysb8oep74b98y
Tags: 3.12.3-0ubuntu1
* new upstream release 3.12.3 RTM (NSS_3_12_3_RTM) (LP: #387751)
* adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
* needs nspr >= 4.7.4
  - update debian/control
* update 85_security_load.patch to latest debian version
  - update debian/patches/85_security_load.patch
* add new symbols for 3.12.3
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#define _PKIX_OCSPCHECKER_H
46
46
 
47
47
#include "pkix_tools.h"
 
48
#include "pkix_revocationmethod.h"
48
49
 
49
50
#ifdef __cplusplus
50
51
extern "C" {
51
52
#endif
52
53
 
53
 
struct PKIX_OcspCheckerStruct {
54
 
        PKIX_PL_OcspResponse *response;
55
 
        PKIX_PL_Date *validityTime;
56
 
        PKIX_Boolean clientIsDefault;
57
 
        void *passwordInfo;
58
 
        void *responder;
59
 
        PKIX_PL_OcspResponse_VerifyCallback verifyFcn;
60
 
        void *nbioContext;
61
 
        PKIX_PL_Cert *cert;
62
 
};
 
54
/* NOTE: nbio logic removed. Will be replaced later. */
 
55
 
 
56
PKIX_Error *
 
57
pkix_OcspChecker_CheckLocal(
 
58
        PKIX_PL_Cert *cert,
 
59
        PKIX_PL_Cert *issuer,
 
60
        PKIX_PL_Date *date,
 
61
        pkix_RevocationMethod *checkerObject,
 
62
        PKIX_ProcessingParams *procParams,
 
63
        PKIX_UInt32 methodFlags,
 
64
        PKIX_Boolean chainVerificationState,
 
65
        PKIX_RevocationStatus *pRevStatus,
 
66
        PKIX_UInt32 *reasonCode,
 
67
        void *plContext);
 
68
 
 
69
PKIX_Error *
 
70
pkix_OcspChecker_CheckExternal(
 
71
        PKIX_PL_Cert *cert,
 
72
        PKIX_PL_Cert *issuer,
 
73
        PKIX_PL_Date *date,
 
74
        pkix_RevocationMethod *checkerObject,
 
75
        PKIX_ProcessingParams *procParams,
 
76
        PKIX_UInt32 methodFlags,
 
77
        PKIX_RevocationStatus *pRevStatus,
 
78
        PKIX_UInt32 *reasonCode,
 
79
        void **pNBIOContext,
 
80
        void *plContext);
 
81
 
 
82
PKIX_Error *
 
83
pkix_OcspChecker_Create(PKIX_RevocationMethodType methodType,
 
84
                        PKIX_UInt32 flags,
 
85
                        PKIX_UInt32 priority,
 
86
                        pkix_LocalRevocationCheckFn localRevChecker,
 
87
                        pkix_ExternalRevocationCheckFn externalRevChecker,
 
88
                        PKIX_PL_VerifyCallback certVerifyFn,
 
89
                        pkix_RevocationMethod **pChecker,
 
90
                        void *plContext);
63
91
 
64
92
/* see source file for function documentation */
65
93
 
66
94
PKIX_Error *pkix_OcspChecker_RegisterSelf(void *plContext);
67
95
 
68
 
PKIX_Error *
69
 
PKIX_OcspChecker_SetPasswordInfo(
70
 
        PKIX_OcspChecker *checker,
71
 
        void *passwordInfo,
72
 
        void *plContext);
73
 
 
74
 
PKIX_Error *
75
 
PKIX_OcspChecker_SetOCSPResponder(
76
 
        PKIX_OcspChecker *checker,
77
 
        void *ocspResponder,
78
 
        void *plContext);
79
 
 
80
 
PKIX_Error *
81
 
PKIX_OcspChecker_SetVerifyFcn(
82
 
        PKIX_OcspChecker *checker,
83
 
        PKIX_PL_OcspResponse_VerifyCallback verifyFcn,
84
 
        void *plContext);
85
 
 
86
 
PKIX_Error *
87
 
PKIX_OcspChecker_Initialize(
88
 
        PKIX_PL_Date *validityTime,
89
 
        void *passwordInfo,
90
 
        void *responder,
91
 
        PKIX_RevocationChecker **pChecker,
92
 
        void *plContext);
93
 
 
94
96
#ifdef __cplusplus
95
97
}
96
98
#endif