| 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» (1<<0) | 10 #define CERTDB_TERMINAL_RECORD» (1u<<0) |
| 11 #define CERTDB_TRUSTED» » (1<<1) | 11 #define CERTDB_TRUSTED» » (1u<<1) |
| 12 #define CERTDB_SEND_WARN» (1<<2) | 12 #define CERTDB_SEND_WARN» (1u<<2) |
| 13 #define CERTDB_VALID_CA»» (1<<3) | 13 #define CERTDB_VALID_CA»» (1u<<3) |
| 14 #define CERTDB_TRUSTED_CA» (1<<4) /* trusted for issuing server certs */ | 14 #define CERTDB_TRUSTED_CA» (1u<<4) /* trusted for issuing server certs */ |
| 15 #define CERTDB_NS_TRUSTED_CA» (1<<5) | 15 #define CERTDB_NS_TRUSTED_CA» (1u<<5) |
| 16 #define CERTDB_USER» » (1<<6) | 16 #define CERTDB_USER» » (1u<<6) |
| 17 #define CERTDB_TRUSTED_CLIENT_CA (1<<7) /* trusted for issuing client certs */ | 17 #define CERTDB_TRUSTED_CLIENT_CA (1u<<7) /* trusted for issuing client certs */ |
| 18 #define CERTDB_INVISIBLE_CA» (1<<8) /* don't show in UI */ | 18 #define CERTDB_INVISIBLE_CA» (1u<<8) /* don't show in UI */ |
| 19 #define CERTDB_GOVT_APPROVED_CA»(1<<9) /* can do strong crypto in export ver */ | 19 #define CERTDB_GOVT_APPROVED_CA»(1u<<9) /* can do strong crypto in export ver */ |
| 20 | 20 |
| 21 /* old usage, to keep old programs compiling */ | 21 /* old usage, to keep old programs compiling */ |
| 22 /* On Windows, Mac, and Linux (and other gcc platforms), we can give compile | 22 /* On Windows, Mac, and Linux (and other gcc platforms), we can give compile |
| 23 * time deprecation warnings when applications use the old CERTDB_VALID_PEER | 23 * time deprecation warnings when applications use the old CERTDB_VALID_PEER |
| 24 * define */ | 24 * define */ |
| 25 #if __GNUC__ > 3 | 25 #if __GNUC__ > 3 |
| 26 #if (__GNUC__ == 4) && (__GNUC_MINOR__ < 5) | 26 #if (__GNUC__ == 4) && (__GNUC_MINOR__ < 5) |
| 27 typedef unsigned int __CERTDB_VALID_PEER __attribute__((deprecated)); | 27 typedef unsigned int __CERTDB_VALID_PEER __attribute__((deprecated)); |
| 28 #else | 28 #else |
| 29 typedef unsigned int __CERTDB_VALID_PEER __attribute__((deprecated | 29 typedef unsigned int __CERTDB_VALID_PEER __attribute__((deprecated |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 PRBool | 75 PRBool |
| 76 SEC_CrlIsNewer(CERTCrl *inNew, CERTCrl *old); | 76 SEC_CrlIsNewer(CERTCrl *inNew, CERTCrl *old); |
| 77 | 77 |
| 78 SECCertTimeValidity | 78 SECCertTimeValidity |
| 79 SEC_CheckCrlTimes(CERTCrl *crl, PRTime t); | 79 SEC_CheckCrlTimes(CERTCrl *crl, PRTime t); |
| 80 | 80 |
| 81 SEC_END_PROTOS | 81 SEC_END_PROTOS |
| 82 | 82 |
| 83 #endif /* _CERTDB_H_ */ | 83 #endif /* _CERTDB_H_ */ |
| OLD | NEW |