OLD | NEW |
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 /* | 5 /* |
6 * Private header defining OCSP types. | 6 * Private header defining OCSP types. |
7 * | 7 * |
8 * $Id: ocspti.h,v 1.8.2.1 2012/12/12 16:38:39 wtc%google.com Exp $ | 8 * $Id: ocspti.h,v 1.11 2013/01/23 23:05:51 kaie%kuix.de Exp $ |
9 */ | 9 */ |
10 | 10 |
11 #ifndef _OCSPTI_H_ | 11 #ifndef _OCSPTI_H_ |
12 #define _OCSPTI_H_ | 12 #define _OCSPTI_H_ |
13 | 13 |
14 #include "ocspt.h" | 14 #include "ocspt.h" |
15 | 15 |
16 #include "certt.h" | 16 #include "certt.h" |
17 #include "plarena.h" | 17 #include "plarena.h" |
18 #include "seccomon.h" | 18 #include "seccomon.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 * successful (0), --Response has valid confirmations | 182 * successful (0), --Response has valid confirmations |
183 * malformedRequest (1), --Illegal confirmation request | 183 * malformedRequest (1), --Illegal confirmation request |
184 * internalError (2), --Internal error in issuer | 184 * internalError (2), --Internal error in issuer |
185 * tryLater (3), --Try again later | 185 * tryLater (3), --Try again later |
186 * --(4) is not used | 186 * --(4) is not used |
187 * sigRequired (5), --Must sign the request | 187 * sigRequired (5), --Must sign the request |
188 * unauthorized (6), --Request unauthorized | 188 * unauthorized (6), --Request unauthorized |
189 * } | 189 * } |
190 */ | 190 */ |
191 typedef enum { | 191 typedef enum { |
192 ocspResponse_other = -1,» » /* unknown/unrecognized value */ | 192 ocspResponse_min = 0, |
193 ocspResponse_successful = 0, | 193 ocspResponse_successful = 0, |
194 ocspResponse_malformedRequest = 1, | 194 ocspResponse_malformedRequest = 1, |
195 ocspResponse_internalError = 2, | 195 ocspResponse_internalError = 2, |
196 ocspResponse_tryLater = 3, | 196 ocspResponse_tryLater = 3, |
197 ocspResponse_unused = 4, | 197 ocspResponse_unused = 4, |
198 ocspResponse_sigRequired = 5, | 198 ocspResponse_sigRequired = 5, |
199 ocspResponse_unauthorized = 6 | 199 ocspResponse_unauthorized = 6, |
| 200 ocspResponse_max = 6 /* Please update max when adding values. |
| 201 * Remember to also update arrays, e.g. |
| 202 * "responseStatusNames" in ocspclnt.c |
| 203 * and potentially other places. */ |
200 } ocspResponseStatus; | 204 } ocspResponseStatus; |
201 | 205 |
202 /* | 206 /* |
203 * An OCSPResponse is what is sent (encoded) by an OCSP responder. | 207 * An OCSPResponse is what is sent (encoded) by an OCSP responder. |
204 * | 208 * |
205 * The field "responseStatus" is the ASN.1 encoded value; the field | 209 * The field "responseStatus" is the ASN.1 encoded value; the field |
206 * "statusValue" is simply that same value translated into our local | 210 * "statusValue" is simply that same value translated into our local |
207 * type ocspResponseStatus. | 211 * type ocspResponseStatus. |
208 */ | 212 */ |
209 struct CERTOCSPResponseStr { | 213 struct CERTOCSPResponseStr { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 * When added, it specifies the (name of the) issuer of the cert being | 352 * When added, it specifies the (name of the) issuer of the cert being |
349 * checked, and optionally the value of the AuthorityInfoAccess extension | 353 * checked, and optionally the value of the AuthorityInfoAccess extension |
350 * if the cert has one. | 354 * if the cert has one. |
351 */ | 355 */ |
352 struct ocspServiceLocatorStr { | 356 struct ocspServiceLocatorStr { |
353 CERTName *issuer; | 357 CERTName *issuer; |
354 SECItem locator; /* DER encoded authInfoAccess extension from cert */ | 358 SECItem locator; /* DER encoded authInfoAccess extension from cert */ |
355 }; | 359 }; |
356 | 360 |
357 #endif /* _OCSPTI_H_ */ | 361 #endif /* _OCSPTI_H_ */ |
OLD | NEW |