|
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/. */ |
|
6 |
|
7 #include "nsIX509Cert.idl" |
|
8 |
|
9 interface nsIArray; |
|
10 interface nsIASN1Object; |
|
11 |
|
12 %{ C++ |
|
13 /* forward declaration */ |
|
14 typedef struct CERTCertificateStr CERTCertificate; |
|
15 %} |
|
16 [ptr] native CERTCertificatePtr(CERTCertificate); |
|
17 |
|
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 }; |