security/nss/lib/libpkix/pkix/checker/pkix_ocspchecker.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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_ocspchecker.h
     6  *
     7  * OcspChecker Object Type Definition
     8  *
     9  */
    11 #ifndef _PKIX_OCSPCHECKER_H
    12 #define _PKIX_OCSPCHECKER_H
    14 #include "pkix_tools.h"
    15 #include "pkix_revocationmethod.h"
    17 #ifdef __cplusplus
    18 extern "C" {
    19 #endif
    21 /* NOTE: nbio logic removed. Will be replaced later. */
    23 PKIX_Error *
    24 pkix_OcspChecker_CheckLocal(
    25         PKIX_PL_Cert *cert,
    26         PKIX_PL_Cert *issuer,
    27         PKIX_PL_Date *date,
    28         pkix_RevocationMethod *checkerObject,
    29         PKIX_ProcessingParams *procParams,
    30         PKIX_UInt32 methodFlags,
    31         PKIX_Boolean chainVerificationState,
    32         PKIX_RevocationStatus *pRevStatus,
    33         PKIX_UInt32 *reasonCode,
    34         void *plContext);
    36 PKIX_Error *
    37 pkix_OcspChecker_CheckExternal(
    38         PKIX_PL_Cert *cert,
    39         PKIX_PL_Cert *issuer,
    40         PKIX_PL_Date *date,
    41         pkix_RevocationMethod *checkerObject,
    42         PKIX_ProcessingParams *procParams,
    43         PKIX_UInt32 methodFlags,
    44         PKIX_RevocationStatus *pRevStatus,
    45         PKIX_UInt32 *reasonCode,
    46         void **pNBIOContext,
    47         void *plContext);
    49 PKIX_Error *
    50 pkix_OcspChecker_Create(PKIX_RevocationMethodType methodType,
    51                         PKIX_UInt32 flags,
    52                         PKIX_UInt32 priority,
    53                         pkix_LocalRevocationCheckFn localRevChecker,
    54                         pkix_ExternalRevocationCheckFn externalRevChecker,
    55                         PKIX_PL_VerifyCallback certVerifyFn,
    56                         pkix_RevocationMethod **pChecker,
    57                         void *plContext);
    59 /* see source file for function documentation */
    61 PKIX_Error *pkix_OcspChecker_RegisterSelf(void *plContext);
    63 #ifdef __cplusplus
    64 }
    65 #endif
    67 #endif /* _PKIX_OCSPCHECKER_H */

mercurial