| OLD | NEW |
| 1 /* ***** BEGIN LICENSE BLOCK ***** | 1 /* ***** BEGIN LICENSE BLOCK ***** |
| 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 * | 3 * |
| 4 * The contents of this file are subject to the Mozilla Public License Version | 4 * The contents of this file are subject to the Mozilla Public License Version |
| 5 * 1.1 (the "License"); you may not use this file except in compliance with | 5 * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 * the License. You may obtain a copy of the License at | 6 * the License. You may obtain a copy of the License at |
| 7 * http://www.mozilla.org/MPL/ | 7 * http://www.mozilla.org/MPL/ |
| 8 * | 8 * |
| 9 * Software distributed under the License is distributed on an "AS IS" basis, | 9 * Software distributed under the License is distributed on an "AS IS" basis, |
| 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 * decision by deleting the provisions above and replace them with the notice | 30 * decision by deleting the provisions above and replace them with the notice |
| 31 * and other provisions required by the GPL or the LGPL. If you do not delete | 31 * and other provisions required by the GPL or the LGPL. If you do not delete |
| 32 * the provisions above, a recipient may use your version of this file under | 32 * the provisions above, a recipient may use your version of this file under |
| 33 * the terms of any one of the MPL, the GPL or the LGPL. | 33 * the terms of any one of the MPL, the GPL or the LGPL. |
| 34 * | 34 * |
| 35 * ***** END LICENSE BLOCK ***** */ | 35 * ***** END LICENSE BLOCK ***** */ |
| 36 | 36 |
| 37 /* | 37 /* |
| 38 * cert.h - public data structures and prototypes for the certificate library | 38 * cert.h - public data structures and prototypes for the certificate library |
| 39 * | 39 * |
| 40 * $Id: cert.h,v 1.79 2010/01/14 22:15:23 alexei.volkov.bugs%sun.com Exp $ | 40 * $Id: cert.h,v 1.80 2010/04/30 07:47:47 nelson%bolyard.com Exp $ |
| 41 */ | 41 */ |
| 42 | 42 |
| 43 #ifndef _CERT_H_ | 43 #ifndef _CERT_H_ |
| 44 #define _CERT_H_ | 44 #define _CERT_H_ |
| 45 | 45 |
| 46 #include "utilrename.h" | 46 #include "utilrename.h" |
| 47 #include "plarena.h" | 47 #include "plarena.h" |
| 48 #include "plhash.h" | 48 #include "plhash.h" |
| 49 #include "prlong.h" | 49 #include "prlong.h" |
| 50 #include "prlog.h" | 50 #include "prlog.h" |
| (...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 CERT_SortCBValidity(CERTCertificate *certa, | 1285 CERT_SortCBValidity(CERTCertificate *certa, |
| 1286 CERTCertificate *certb, | 1286 CERTCertificate *certb, |
| 1287 void *arg); | 1287 void *arg); |
| 1288 | 1288 |
| 1289 SECStatus | 1289 SECStatus |
| 1290 CERT_CheckForEvilCert(CERTCertificate *cert); | 1290 CERT_CheckForEvilCert(CERTCertificate *cert); |
| 1291 | 1291 |
| 1292 CERTGeneralName * | 1292 CERTGeneralName * |
| 1293 CERT_GetCertificateNames(CERTCertificate *cert, PLArenaPool *arena); | 1293 CERT_GetCertificateNames(CERTCertificate *cert, PLArenaPool *arena); |
| 1294 | 1294 |
| 1295 CERTGeneralName * |
| 1296 CERT_GetConstrainedCertificateNames(CERTCertificate *cert, PLArenaPool *arena, |
| 1297 PRBool includeSubjectCommonName); |
| 1298 |
| 1295 char * | 1299 char * |
| 1296 CERT_GetNickName(CERTCertificate *cert, CERTCertDBHandle *handle, PLArenaPool
*nicknameArena); | 1300 CERT_GetNickName(CERTCertificate *cert, CERTCertDBHandle *handle, PLArenaPool
*nicknameArena); |
| 1297 | 1301 |
| 1298 /* | 1302 /* |
| 1299 * Creates or adds to a list of all certs with a give subject name, sorted by | 1303 * Creates or adds to a list of all certs with a give subject name, sorted by |
| 1300 * validity time, newest first. Invalid certs are considered older than | 1304 * validity time, newest first. Invalid certs are considered older than |
| 1301 * valid certs. If validOnly is set, do not include invalid certs on list. | 1305 * valid certs. If validOnly is set, do not include invalid certs on list. |
| 1302 */ | 1306 */ |
| 1303 CERTCertList * | 1307 CERTCertList * |
| 1304 CERT_CreateSubjectCertList(CERTCertList *certList, CERTCertDBHandle *handle, | 1308 CERT_CreateSubjectCertList(CERTCertList *certList, CERTCertDBHandle *handle, |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 * Function is not thread safe.*/ | 1672 * Function is not thread safe.*/ |
| 1669 SECStatus CERT_SetUsePKIXForValidation(PRBool enable); | 1673 SECStatus CERT_SetUsePKIXForValidation(PRBool enable); |
| 1670 | 1674 |
| 1671 /* The function return PR_TRUE if cert validation should use | 1675 /* The function return PR_TRUE if cert validation should use |
| 1672 * libpkix cert validation engine. */ | 1676 * libpkix cert validation engine. */ |
| 1673 PRBool CERT_GetUsePKIXForValidation(void); | 1677 PRBool CERT_GetUsePKIXForValidation(void); |
| 1674 | 1678 |
| 1675 SEC_END_PROTOS | 1679 SEC_END_PROTOS |
| 1676 | 1680 |
| 1677 #endif /* _CERT_H_ */ | 1681 #endif /* _CERT_H_ */ |
| OLD | NEW |