| 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 * ocspi.h - NSS internal interfaces to OCSP code | 5 * ocspi.h - NSS internal interfaces to OCSP code |
| 6 * | 6 * |
| 7 * $Id$ | 7 * $Id$ |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef _OCSPI_H_ | 10 #ifndef _OCSPI_H_ |
| 11 #define _OCSPI_H_ | 11 #define _OCSPI_H_ |
| 12 | 12 |
| 13 SECStatus OCSP_InitGlobal(void); | 13 SECStatus OCSP_InitGlobal(void); |
| 14 SECStatus OCSP_ShutdownGlobal(void); | 14 SECStatus OCSP_ShutdownGlobal(void); |
| 15 | 15 |
| 16 ocspResponseData * | 16 ocspResponseData * |
| 17 ocsp_GetResponseData(CERTOCSPResponse *response, SECItem **tbsResponseDataDER); | 17 ocsp_GetResponseData(CERTOCSPResponse *response, SECItem **tbsResponseDataDER); |
| 18 | 18 |
| 19 ocspSignature * | 19 ocspSignature * |
| 20 ocsp_GetResponseSignature(CERTOCSPResponse *response); | 20 ocsp_GetResponseSignature(CERTOCSPResponse *response); |
| 21 | 21 |
| 22 SECItem * |
| 23 ocsp_DigestValue(PRArenaPool *arena, SECOidTag digestAlg, |
| 24 SECItem *fill, const SECItem *src); |
| 25 |
| 22 PRBool | 26 PRBool |
| 23 ocsp_CertIsOCSPDefaultResponder(CERTCertDBHandle *handle, CERTCertificate *cert)
; | 27 ocsp_CertIsOCSPDefaultResponder(CERTCertDBHandle *handle, CERTCertificate *cert)
; |
| 24 | 28 |
| 25 CERTCertificate * | 29 CERTCertificate * |
| 26 ocsp_GetSignerCertificate(CERTCertDBHandle *handle, ocspResponseData *tbsData, | 30 ocsp_GetSignerCertificate(CERTCertDBHandle *handle, ocspResponseData *tbsData, |
| 27 ocspSignature *signature, CERTCertificate *issuer); | 31 ocspSignature *signature, CERTCertificate *issuer); |
| 28 | 32 |
| 29 SECStatus | 33 SECStatus |
| 30 ocsp_VerifyResponseSignature(CERTCertificate *signerCert, | 34 ocsp_VerifyResponseSignature(CERTCertificate *signerCert, |
| 31 ocspSignature *signature, | 35 ocspSignature *signature, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 * The function checks the global ocsp settings and | 135 * The function checks the global ocsp settings and |
| 132 * tells how to treat an ocsp response fetching failure. | 136 * tells how to treat an ocsp response fetching failure. |
| 133 * RETURNS: | 137 * RETURNS: |
| 134 * if PR_TRUE is returned, then treat fetching as a | 138 * if PR_TRUE is returned, then treat fetching as a |
| 135 * revoked cert status. | 139 * revoked cert status. |
| 136 */ | 140 */ |
| 137 PRBool | 141 PRBool |
| 138 ocsp_FetchingFailureIsVerificationFailure(void); | 142 ocsp_FetchingFailureIsVerificationFailure(void); |
| 139 | 143 |
| 140 #endif /* _OCSPI_H_ */ | 144 #endif /* _OCSPI_H_ */ |
| OLD | NEW |