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 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 CERTCertificate *cert, | 1555 CERTCertificate *cert, |
1556 CERTNameConstraints **constraints); | 1556 CERTNameConstraints **constraints); |
1557 | 1557 |
1558 /* | 1558 /* |
1559 * Initialize a new GERTGeneralName fields (link) | 1559 * Initialize a new GERTGeneralName fields (link) |
1560 */ | 1560 */ |
1561 extern CERTGeneralName * | 1561 extern CERTGeneralName * |
1562 CERT_NewGeneralName(PLArenaPool *arena, CERTGeneralNameType type); | 1562 CERT_NewGeneralName(PLArenaPool *arena, CERTGeneralNameType type); |
1563 | 1563 |
1564 /* | 1564 /* |
| 1565 * Lookup a CERTGeneralNameType constant by its human readable string. |
| 1566 */ |
| 1567 extern CERTGeneralNameType |
| 1568 CERT_GetGeneralNameTypeFromString(const char *string); |
| 1569 |
| 1570 /* |
1565 * PKIX extension encoding routines | 1571 * PKIX extension encoding routines |
1566 */ | 1572 */ |
1567 extern SECStatus | 1573 extern SECStatus |
1568 CERT_EncodePolicyConstraintsExtension(PLArenaPool *arena, | 1574 CERT_EncodePolicyConstraintsExtension(PLArenaPool *arena, |
1569 CERTCertificatePolicyConstraints *constr, | 1575 CERTCertificatePolicyConstraints *constr, |
1570 SECItem *dest); | 1576 SECItem *dest); |
1571 extern SECStatus | 1577 extern SECStatus |
1572 CERT_EncodeInhibitAnyExtension(PLArenaPool *arena, | 1578 CERT_EncodeInhibitAnyExtension(PLArenaPool *arena, |
1573 CERTCertificateInhibitAny *inhibitAny, | 1579 CERTCertificateInhibitAny *inhibitAny, |
1574 SECItem *dest); | 1580 SECItem *dest); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1660 /* | 1666 /* |
1661 * Destroy the arrays inside flags, | 1667 * Destroy the arrays inside flags, |
1662 * and destroy the object pointed to by flags, too. | 1668 * and destroy the object pointed to by flags, too. |
1663 */ | 1669 */ |
1664 extern void | 1670 extern void |
1665 CERT_DestroyCERTRevocationFlags(CERTRevocationFlags *flags); | 1671 CERT_DestroyCERTRevocationFlags(CERTRevocationFlags *flags); |
1666 | 1672 |
1667 SEC_END_PROTOS | 1673 SEC_END_PROTOS |
1668 | 1674 |
1669 #endif /* _CERT_H_ */ | 1675 #endif /* _CERT_H_ */ |
OLD | NEW |