Skip to content

Commit

Permalink
Bug 1117897, declare the SEC_GetCrlTimes function in a header, r=rrelyea
Browse files Browse the repository at this point in the history
  • Loading branch information
kaie committed Mar 11, 2015
1 parent 41c55e3 commit 40f643a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/certdb/certdb.h
Expand Up @@ -75,6 +75,21 @@ SECStatus SEC_DeletePermCertificate(CERTCertificate *cert);
PRBool
SEC_CrlIsNewer(CERTCrl *inNew, CERTCrl *old);

/*
** Extract the validity times from a CRL
** "crl" is the CRL
** "notBefore" is the start of the validity period (last update)
** "notAfter" is the end of the validity period (next update)
*/
SECStatus
SEC_GetCrlTimes(CERTCrl *crl, PRTime *notBefore, PRTime *notAfter);

/*
** Check the validity times of a crl vs. time 't', allowing
** some slop for broken clocks and stuff.
** "crl" is the certificate to be checked
** "t" is the time to check against
*/
SECCertTimeValidity
SEC_CheckCrlTimes(CERTCrl *crl, PRTime t);

Expand Down

0 comments on commit 40f643a

Please sign in to comment.