Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | /* |
michael@0 | 6 | * x.509 v3 certificate extension helper routines |
michael@0 | 7 | * |
michael@0 | 8 | */ |
michael@0 | 9 | |
michael@0 | 10 | |
michael@0 | 11 | #ifndef _CERTXUTL_H_ |
michael@0 | 12 | #define _CERTXUTL_H_ |
michael@0 | 13 | |
michael@0 | 14 | #include "nspr.h" |
michael@0 | 15 | |
michael@0 | 16 | #ifdef OLD |
michael@0 | 17 | typedef enum { |
michael@0 | 18 | CertificateExtensions, |
michael@0 | 19 | CrlExtensions, |
michael@0 | 20 | OCSPRequestExtensions, |
michael@0 | 21 | OCSPSingleRequestExtensions, |
michael@0 | 22 | OCSPResponseSingleExtensions |
michael@0 | 23 | } ExtensionsType; |
michael@0 | 24 | #endif |
michael@0 | 25 | |
michael@0 | 26 | extern PRBool |
michael@0 | 27 | cert_HasCriticalExtension (CERTCertExtension **extensions); |
michael@0 | 28 | |
michael@0 | 29 | extern SECStatus |
michael@0 | 30 | CERT_FindBitStringExtension (CERTCertExtension **extensions, |
michael@0 | 31 | int tag, SECItem *retItem); |
michael@0 | 32 | extern void * |
michael@0 | 33 | cert_StartExtensions (void *owner, PLArenaPool *arena, |
michael@0 | 34 | void (*setExts)(void *object, CERTCertExtension **exts)); |
michael@0 | 35 | |
michael@0 | 36 | extern SECStatus |
michael@0 | 37 | cert_FindExtension (CERTCertExtension **extensions, int tag, SECItem *value); |
michael@0 | 38 | |
michael@0 | 39 | extern SECStatus |
michael@0 | 40 | cert_FindExtensionByOID (CERTCertExtension **extensions, |
michael@0 | 41 | SECItem *oid, SECItem *value); |
michael@0 | 42 | |
michael@0 | 43 | extern SECStatus |
michael@0 | 44 | cert_GetExtenCriticality (CERTCertExtension **extensions, |
michael@0 | 45 | int tag, PRBool *isCritical); |
michael@0 | 46 | |
michael@0 | 47 | extern PRBool |
michael@0 | 48 | cert_HasUnknownCriticalExten (CERTCertExtension **extensions); |
michael@0 | 49 | |
michael@0 | 50 | #endif |