Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: nss/lib/libpkix/include/pkix_revchecker.h

Issue 1017413002: Uprev NSS to 3.18 RTM (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@nspr_uprev
Patch Set: Rebased Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 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 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/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 /* 4 /*
5 * This file defines functions associated with the PKIX_RevocationChecker 5 * This file defines functions associated with the PKIX_RevocationChecker
6 * type. 6 * type.
7 * 7 *
8 */ 8 */
9 9
10 #ifndef _PKIX_REVCHECKER_H 10 #ifndef _PKIX_REVCHECKER_H
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 * Address of revocation checker structure. 110 * Address of revocation checker structure.
111 * "procParams" 111 * "procParams"
112 * Address of ProcessingParams used to initialize the checker. 112 * Address of ProcessingParams used to initialize the checker.
113 * Must be non-NULL. 113 * Must be non-NULL.
114 * "methodType" 114 * "methodType"
115 * Type of the method. Currently only two types are 115 * Type of the method. Currently only two types are
116 * supported: crl and ocsp. (See PKIX_RevocationMethodType enum). 116 * supported: crl and ocsp. (See PKIX_RevocationMethodType enum).
117 * "methodFlags" 117 * "methodFlags"
118 * Set of flags for the method. 118 * Set of flags for the method.
119 * "methodPriority" 119 * "methodPriority"
120 * Method priority. (0 corresponds to a highest priority) 120 * Method priority. (0 corresponds to the highest priority)
121 * "verificationFn" 121 * "verificationFn"
122 * User call back function that will perform validation of fetched 122 * User call back function that will perform validation of fetched
123 * revocation information(new crl or ocsp response) 123 * revocation information(new crl or ocsp response)
124 * "isLeafMethod" 124 * "isLeafMethod"
125 * Boolean flag that if set to true indicates that the method should 125 * Boolean flag that if set to true indicates that the method should
126 * should be used for leaf cert revocation test(false for chain set 126 * should be used for leaf cert revocation test(false for chain set
127 * methods). 127 * methods).
128 * "plContext" 128 * "plContext"
129 * Platform-specific context pointer. 129 * Platform-specific context pointer.
130 * THREAD SAFETY: 130 * THREAD SAFETY:
131 * Thread Safe 131 * Thread Safe
132 * 132 *
133 * Multiple threads must be able to safely call this function without 133 * Multiple threads must be able to safely call this function without
134 * worrying about conflicts, even if they're operating on the same objects. 134 * worrying about conflicts, even if they're operating on the same objects.
135 * RETURNS: 135 * RETURNS:
136 * Returns NULL if the function succeeds. 136 * Returns NULL if the function succeeds.
137 * Returns a RevocationChecker Error if the function fails in a non-fatal way. 137 * Returns a RevocationChecker Error if the function fails in a non-fatal way.
138 * Returns a Fatal Error if the function fails in an unrecoverable way. 138 * Returns a Fatal Error if the function fails in an unrecoverable way.
139 */ 139 */
140 PKIX_Error * 140 PKIX_Error *
141 PKIX_RevocationChecker_CreateAndAddMethod( 141 PKIX_RevocationChecker_CreateAndAddMethod(
142 PKIX_RevocationChecker *revChecker, 142 PKIX_RevocationChecker *revChecker,
143 PKIX_ProcessingParams *params, 143 PKIX_ProcessingParams *params,
144 PKIX_RevocationMethodType methodType, 144 PKIX_RevocationMethodType methodType,
145 PKIX_UInt32 methodFlags, 145 PKIX_UInt32 methodFlags,
146 PKIX_UInt32 mathodPriority, 146 PKIX_UInt32 methodPriority,
147 PKIX_PL_VerifyCallback verificationFn, 147 PKIX_PL_VerifyCallback verificationFn,
148 PKIX_Boolean isLeafMethod, 148 PKIX_Boolean isLeafMethod,
149 void *plContext); 149 void *plContext);
150 150
151 /* 151 /*
152 * FUNCTION: PKIX_RevocationChecker_Check 152 * FUNCTION: PKIX_RevocationChecker_Check
153 * DESCRIPTION: 153 * DESCRIPTION:
154 * 154 *
155 * Verifies revocation status of the certificate. Issuer cert is given to 155 * Verifies revocation status of the certificate. Issuer cert is given to
156 * be used in verification of revocation information. Performed verification 156 * be used in verification of revocation information. Performed verification
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 PKIX_RevocationStatus *revStatus, 208 PKIX_RevocationStatus *revStatus,
209 PKIX_UInt32 *pReasonCode, 209 PKIX_UInt32 *pReasonCode,
210 void **pNbioContext, 210 void **pNbioContext,
211 void *plContext); 211 void *plContext);
212 212
213 #ifdef __cplusplus 213 #ifdef __cplusplus
214 } 214 }
215 #endif 215 #endif
216 216
217 #endif /* _PKIX_REVCHECKER_H */ 217 #endif /* _PKIX_REVCHECKER_H */
OLDNEW
« no previous file with comments | « nss/lib/libpkix/include/pkix_errorstrings.h ('k') | nss/lib/libpkix/pkix/checker/pkix_revocationchecker.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698