| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 ** NULL terminated list of AVA's. | 72 ** NULL terminated list of AVA's. |
| 73 */ | 73 */ |
| 74 extern CERTRDN *CERT_CreateRDN(PLArenaPool *arena, CERTAVA *avas, ...); | 74 extern CERTRDN *CERT_CreateRDN(PLArenaPool *arena, CERTAVA *avas, ...); |
| 75 | 75 |
| 76 /* | 76 /* |
| 77 ** Make a copy of "src" storing it in "dest". | 77 ** Make a copy of "src" storing it in "dest". |
| 78 */ | 78 */ |
| 79 extern SECStatus CERT_CopyRDN(PLArenaPool *arena, CERTRDN *dest, CERTRDN *src); | 79 extern SECStatus CERT_CopyRDN(PLArenaPool *arena, CERTRDN *dest, CERTRDN *src); |
| 80 | 80 |
| 81 /* | 81 /* |
| 82 ** Destory an RDN object. | |
| 83 ** "rdn" the RDN to destroy | |
| 84 ** "freeit" if PR_TRUE then free the object as well as its sub-objects | |
| 85 */ | |
| 86 extern void CERT_DestroyRDN(CERTRDN *rdn, PRBool freeit); | |
| 87 | |
| 88 /* | |
| 89 ** Add an AVA to an RDN. | 82 ** Add an AVA to an RDN. |
| 90 ** "rdn" the RDN to add to | 83 ** "rdn" the RDN to add to |
| 91 ** "ava" the AVA to add | 84 ** "ava" the AVA to add |
| 92 */ | 85 */ |
| 93 extern SECStatus CERT_AddAVA(PLArenaPool *arena, CERTRDN *rdn, CERTAVA *ava); | 86 extern SECStatus CERT_AddAVA(PLArenaPool *arena, CERTRDN *rdn, CERTAVA *ava); |
| 94 | 87 |
| 95 /* | 88 /* |
| 96 ** Compare two RDN's, returning the difference between them. | 89 ** Compare two RDN's, returning the difference between them. |
| 97 */ | 90 */ |
| 98 extern SECComparison CERT_CompareRDN(const CERTRDN *a, const CERTRDN *b); | 91 extern SECComparison CERT_CompareRDN(const CERTRDN *a, const CERTRDN *b); |
| (...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 /* | 1660 /* |
| 1668 * Destroy the arrays inside flags, | 1661 * Destroy the arrays inside flags, |
| 1669 * and destroy the object pointed to by flags, too. | 1662 * and destroy the object pointed to by flags, too. |
| 1670 */ | 1663 */ |
| 1671 extern void | 1664 extern void |
| 1672 CERT_DestroyCERTRevocationFlags(CERTRevocationFlags *flags); | 1665 CERT_DestroyCERTRevocationFlags(CERTRevocationFlags *flags); |
| 1673 | 1666 |
| 1674 SEC_END_PROTOS | 1667 SEC_END_PROTOS |
| 1675 | 1668 |
| 1676 #endif /* _CERT_H_ */ | 1669 #endif /* _CERT_H_ */ |
| OLD | NEW |