| OLD | NEW |
| (Empty) |
| 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 | |
| 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| 4 | |
| 5 /* | |
| 6 * x.509 v3 certificate extension helper routines | |
| 7 * | |
| 8 */ | |
| 9 | |
| 10 | |
| 11 #ifndef _CERTXUTL_H_ | |
| 12 #define _CERTXUTL_H_ | |
| 13 | |
| 14 #include "nspr.h" | |
| 15 | |
| 16 #ifdef OLD | |
| 17 typedef enum { | |
| 18 CertificateExtensions, | |
| 19 CrlExtensions, | |
| 20 OCSPRequestExtensions, | |
| 21 OCSPSingleRequestExtensions, | |
| 22 OCSPResponseSingleExtensions | |
| 23 } ExtensionsType; | |
| 24 #endif | |
| 25 | |
| 26 extern PRBool | |
| 27 cert_HasCriticalExtension (CERTCertExtension **extensions); | |
| 28 | |
| 29 extern SECStatus | |
| 30 CERT_FindBitStringExtension (CERTCertExtension **extensions, | |
| 31 int tag, SECItem *retItem); | |
| 32 extern void * | |
| 33 cert_StartExtensions (void *owner, PLArenaPool *arena, | |
| 34 void (*setExts)(void *object, CERTCertExtension **exts)); | |
| 35 | |
| 36 extern SECStatus | |
| 37 cert_FindExtension (CERTCertExtension **extensions, int tag, SECItem *value); | |
| 38 | |
| 39 extern SECStatus | |
| 40 cert_FindExtensionByOID (CERTCertExtension **extensions, | |
| 41 SECItem *oid, SECItem *value); | |
| 42 | |
| 43 extern SECStatus | |
| 44 cert_GetExtenCriticality (CERTCertExtension **extensions, | |
| 45 int tag, PRBool *isCritical); | |
| 46 | |
| 47 extern PRBool | |
| 48 cert_HasUnknownCriticalExten (CERTCertExtension **extensions); | |
| 49 | |
| 50 #endif | |
| OLD | NEW |