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 /* | 5 /* |
6 * cert.h - public data structures and prototypes for the certificate library | 6 * cert.h - public data structures and prototypes for the certificate library |
7 */ | 7 */ |
8 | 8 |
9 #ifndef _CERT_H_ | 9 #ifndef _CERT_H_ |
10 #define _CERT_H_ | 10 #define _CERT_H_ |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 261 |
262 /* | 262 /* |
263 ** Extract a public key object from a certificate | 263 ** Extract a public key object from a certificate |
264 */ | 264 */ |
265 extern SECKEYPublicKey *CERT_ExtractPublicKey(CERTCertificate *cert); | 265 extern SECKEYPublicKey *CERT_ExtractPublicKey(CERTCertificate *cert); |
266 | 266 |
267 /* | 267 /* |
268 ** Retrieve the Key Type associated with the cert we're dealing with | 268 ** Retrieve the Key Type associated with the cert we're dealing with |
269 */ | 269 */ |
270 | 270 |
271 extern KeyType CERT_GetCertKeyType (CERTSubjectPublicKeyInfo *spki); | 271 extern KeyType CERT_GetCertKeyType (const CERTSubjectPublicKeyInfo *spki); |
272 | 272 |
273 /* | 273 /* |
274 ** Initialize the certificate database. This is called to create | 274 ** Initialize the certificate database. This is called to create |
275 ** the initial list of certificates in the database. | 275 ** the initial list of certificates in the database. |
276 */ | 276 */ |
277 extern SECStatus CERT_InitCertDB(CERTCertDBHandle *handle); | 277 extern SECStatus CERT_InitCertDB(CERTCertDBHandle *handle); |
278 | 278 |
279 extern int CERT_GetDBContentVersion(CERTCertDBHandle *handle); | 279 extern int CERT_GetDBContentVersion(CERTCertDBHandle *handle); |
280 | 280 |
281 /* | 281 /* |
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 /* | 1646 /* |
1647 * Destroy the arrays inside flags, | 1647 * Destroy the arrays inside flags, |
1648 * and destroy the object pointed to by flags, too. | 1648 * and destroy the object pointed to by flags, too. |
1649 */ | 1649 */ |
1650 extern void | 1650 extern void |
1651 CERT_DestroyCERTRevocationFlags(CERTRevocationFlags *flags); | 1651 CERT_DestroyCERTRevocationFlags(CERTRevocationFlags *flags); |
1652 | 1652 |
1653 SEC_END_PROTOS | 1653 SEC_END_PROTOS |
1654 | 1654 |
1655 #endif /* _CERT_H_ */ | 1655 #endif /* _CERT_H_ */ |
OLD | NEW |