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 * Interface to the OCSP implementation. | 6 * Interface to the OCSP implementation. |
7 * | 7 * |
8 * $Id$ | 8 * $Id$ |
9 */ | 9 */ |
10 | 10 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 * SECItem *src | 293 * SECItem *src |
294 * Pointer to a SECItem holding DER encoded OCSP Response. | 294 * Pointer to a SECItem holding DER encoded OCSP Response. |
295 * RETURN: | 295 * RETURN: |
296 * Returns a pointer to a CERTOCSPResponse (the decoded OCSP Response); | 296 * Returns a pointer to a CERTOCSPResponse (the decoded OCSP Response); |
297 * the caller is responsible for destroying it. Or NULL if error (either | 297 * the caller is responsible for destroying it. Or NULL if error (either |
298 * response could not be decoded (SEC_ERROR_OCSP_MALFORMED_RESPONSE), | 298 * response could not be decoded (SEC_ERROR_OCSP_MALFORMED_RESPONSE), |
299 * it was of an unexpected type (SEC_ERROR_OCSP_UNKNOWN_RESPONSE_TYPE), | 299 * it was of an unexpected type (SEC_ERROR_OCSP_UNKNOWN_RESPONSE_TYPE), |
300 * or a low-level or internal error occurred). | 300 * or a low-level or internal error occurred). |
301 */ | 301 */ |
302 extern CERTOCSPResponse * | 302 extern CERTOCSPResponse * |
303 CERT_DecodeOCSPResponse(SECItem *src); | 303 CERT_DecodeOCSPResponse(const SECItem *src); |
304 | 304 |
305 /* | 305 /* |
306 * FUNCTION: CERT_DestroyOCSPResponse | 306 * FUNCTION: CERT_DestroyOCSPResponse |
307 * Frees an OCSP Response structure. | 307 * Frees an OCSP Response structure. |
308 * INPUTS: | 308 * INPUTS: |
309 * CERTOCSPResponse *request | 309 * CERTOCSPResponse *request |
310 * Pointer to CERTOCSPResponse to be freed. | 310 * Pointer to CERTOCSPResponse to be freed. |
311 * RETURN: | 311 * RETURN: |
312 * No return value; no errors. | 312 * No return value; no errors. |
313 */ | 313 */ |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 * void *pwArg | 544 * void *pwArg |
545 * argument for password prompting, if needed | 545 * argument for password prompting, if needed |
546 * RETURN: | 546 * RETURN: |
547 * SECSuccess if the cert was found in the cache, or if the OCSP response was | 547 * SECSuccess if the cert was found in the cache, or if the OCSP response was |
548 * found to be valid and inserted into the cache. SECFailure otherwise. | 548 * found to be valid and inserted into the cache. SECFailure otherwise. |
549 */ | 549 */ |
550 extern SECStatus | 550 extern SECStatus |
551 CERT_CacheOCSPResponseFromSideChannel(CERTCertDBHandle *handle, | 551 CERT_CacheOCSPResponseFromSideChannel(CERTCertDBHandle *handle, |
552 CERTCertificate *cert, | 552 CERTCertificate *cert, |
553 PRTime time, | 553 PRTime time, |
554 » » » » SECItem *encodedResponse, | 554 » » » » const SECItem *encodedResponse, |
555 void *pwArg); | 555 void *pwArg); |
556 | 556 |
557 /* | 557 /* |
558 * FUNCTION: CERT_GetOCSPStatusForCertID | 558 * FUNCTION: CERT_GetOCSPStatusForCertID |
559 * Returns the OCSP status contained in the passed in parameter response | 559 * Returns the OCSP status contained in the passed in parameter response |
560 * that corresponds to the certID passed in. | 560 * that corresponds to the certID passed in. |
561 * INPUTS: | 561 * INPUTS: |
562 * CERTCertDBHandle *handle | 562 * CERTCertDBHandle *handle |
563 * certificate DB of the cert that is being checked | 563 * certificate DB of the cert that is being checked |
564 * CERTOCSPResponse *response | 564 * CERTOCSPResponse *response |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 * SEC_ERROR_INVALID_ARGS | 696 * SEC_ERROR_INVALID_ARGS |
697 * Other errors are low-level problems (no memory, bad database, etc.). | 697 * Other errors are low-level problems (no memory, bad database, etc.). |
698 */ | 698 */ |
699 extern SECItem* | 699 extern SECItem* |
700 CERT_CreateEncodedOCSPErrorResponse(PLArenaPool *arena, int error); | 700 CERT_CreateEncodedOCSPErrorResponse(PLArenaPool *arena, int error); |
701 | 701 |
702 /************************************************************************/ | 702 /************************************************************************/ |
703 SEC_END_PROTOS | 703 SEC_END_PROTOS |
704 | 704 |
705 #endif /* _OCSP_H_ */ | 705 #endif /* _OCSP_H_ */ |
OLD | NEW |