| Index: nss/lib/certhigh/ocspi.h
|
| ===================================================================
|
| --- nss/lib/certhigh/ocspi.h (revision 239365)
|
| +++ nss/lib/certhigh/ocspi.h (working copy)
|
| @@ -41,12 +41,15 @@
|
| PRBool addServiceLocator,
|
| CERTCertificate *signerCert);
|
|
|
| +typedef enum { ocspMissing, ocspFresh, ocspStale } OCSPFreshness;
|
| +
|
| SECStatus
|
| -ocsp_GetCachedOCSPResponseStatusIfFresh(CERTOCSPCertID *certID,
|
| - PRTime time,
|
| - PRBool ignoreOcspFailureMode,
|
| - SECStatus *rvOcsp,
|
| - SECErrorCodes *missingResponseError);
|
| +ocsp_GetCachedOCSPResponseStatus(CERTOCSPCertID *certID,
|
| + PRTime time,
|
| + PRBool ignoreOcspFailureMode,
|
| + SECStatus *rvOcsp,
|
| + SECErrorCodes *missingResponseError,
|
| + OCSPFreshness *freshness);
|
|
|
| /*
|
| * FUNCTION: cert_ProcessOCSPResponse
|
| @@ -139,4 +142,23 @@
|
| PRBool
|
| ocsp_FetchingFailureIsVerificationFailure(void);
|
|
|
| +size_t
|
| +ocsp_UrlEncodeBase64Buf(const char *base64Buf, char *outputBuf);
|
| +
|
| +SECStatus
|
| +ocsp_GetVerifiedSingleResponseForCertID(CERTCertDBHandle *handle,
|
| + CERTOCSPResponse *response,
|
| + CERTOCSPCertID *certID,
|
| + CERTCertificate *signerCert,
|
| + PRTime time,
|
| + CERTOCSPSingleResponse **pSingleResponse);
|
| +
|
| +SECStatus
|
| +ocsp_CertHasGoodStatus(ocspCertStatus *status, PRTime time);
|
| +
|
| +void
|
| +ocsp_CacheSingleResponse(CERTOCSPCertID *certID,
|
| + CERTOCSPSingleResponse *single,
|
| + PRBool *certIDWasConsumed);
|
| +
|
| #endif /* _OCSPI_H_ */
|
|
|