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
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsIX509Cert.idl"
9 interface nsIArray;
10 interface nsIASN1Object;
12 %{ C++
13 /* forward declaration */
14 typedef struct CERTCertificateStr CERTCertificate;
15 %}
16 [ptr] native CERTCertificatePtr(CERTCertificate);
18 /**
19 * This represents additional interfaces to X.509 certificates
20 */
21 [scriptable, uuid(5b62c61c-f898-4dab-8ace-51109bb459b4)]
22 interface nsIX509Cert2 : nsIX509Cert {
23 /**
24 * Additional constants to classify the type of a certificate.
25 */
26 const unsigned long ANY_CERT = 0xffff;
27 readonly attribute unsigned long certType;
28 void markForPermDeletion();
29 [notxpcom, noscript] CERTCertificatePtr getCert();
30 };