| 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 #ifndef _CERTDB_H_ | 5 #ifndef _CERTDB_H_ |
| 6 #define _CERTDB_H_ | 6 #define _CERTDB_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 /* common flags for all types of certificates */ | 9 /* common flags for all types of certificates */ |
| 10 #define CERTDB_TERMINAL_RECORD (1u<<0) | 10 #define CERTDB_TERMINAL_RECORD (1u<<0) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 SECStatus | 69 SECStatus |
| 70 CERT_AddTempCertToPerm(CERTCertificate *cert, char *nickname, | 70 CERT_AddTempCertToPerm(CERTCertificate *cert, char *nickname, |
| 71 CERTCertTrust *trust); | 71 CERTCertTrust *trust); |
| 72 | 72 |
| 73 SECStatus SEC_DeletePermCertificate(CERTCertificate *cert); | 73 SECStatus SEC_DeletePermCertificate(CERTCertificate *cert); |
| 74 | 74 |
| 75 PRBool | 75 PRBool |
| 76 SEC_CrlIsNewer(CERTCrl *inNew, CERTCrl *old); | 76 SEC_CrlIsNewer(CERTCrl *inNew, CERTCrl *old); |
| 77 | 77 |
| 78 /* |
| 79 ** Extract the validity times from a CRL |
| 80 ** "crl" is the CRL |
| 81 ** "notBefore" is the start of the validity period (last update) |
| 82 ** "notAfter" is the end of the validity period (next update) |
| 83 */ |
| 84 SECStatus |
| 85 SEC_GetCrlTimes(CERTCrl *crl, PRTime *notBefore, PRTime *notAfter); |
| 86 |
| 87 /* |
| 88 ** Check the validity times of a crl vs. time 't', allowing |
| 89 ** some slop for broken clocks and stuff. |
| 90 ** "crl" is the certificate to be checked |
| 91 ** "t" is the time to check against |
| 92 */ |
| 78 SECCertTimeValidity | 93 SECCertTimeValidity |
| 79 SEC_CheckCrlTimes(CERTCrl *crl, PRTime t); | 94 SEC_CheckCrlTimes(CERTCrl *crl, PRTime t); |
| 80 | 95 |
| 81 SEC_END_PROTOS | 96 SEC_END_PROTOS |
| 82 | 97 |
| 83 #endif /* _CERTDB_H_ */ | 98 #endif /* _CERTDB_H_ */ |
| OLD | NEW |