|
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 #include "nsISupports.idl" |
|
6 |
|
7 interface nsISimpleEnumerator; |
|
8 interface nsIX509Cert; |
|
9 |
|
10 [scriptable, uuid(a539759b-e22d-462f-94ea-2915b11b33e8)] |
|
11 interface nsIX509CertList : nsISupports { |
|
12 void addCert(in nsIX509Cert cert); |
|
13 void deleteCert(in nsIX509Cert cert); |
|
14 nsISimpleEnumerator getEnumerator(); |
|
15 |
|
16 /* getRawCertList MUST be called only from functions where |
|
17 * the nssShutdownPreventionLock has been adquired. |
|
18 */ |
|
19 [notxpcom, noscript] voidPtr getRawCertList(); |
|
20 |
|
21 }; |
|
22 |
|
23 %{C++ |
|
24 |
|
25 #define NS_X509CERTLIST_CID { /* 959fb165-6517-487f-ab9b-d8913be53197 */ \ |
|
26 0x959fb165, \ |
|
27 0x6517, \ |
|
28 0x487f, \ |
|
29 {0xab, 0x9b, 0xd8, 0x91, 0x3b, 0xe5, 0x31, 0x97} \ |
|
30 } |
|
31 |
|
32 #define NS_X509CERTLIST_CONTRACTID "@mozilla.org/security/x509certlist;1" |
|
33 |
|
34 %} |