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 /* 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/. */
5 #include "nsISupports.idl"
7 interface nsISimpleEnumerator;
8 interface nsIX509Cert;
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();
16 /* getRawCertList MUST be called only from functions where
17 * the nssShutdownPreventionLock has been adquired.
18 */
19 [notxpcom, noscript] voidPtr getRawCertList();
21 };
23 %{C++
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 }
32 #define NS_X509CERTLIST_CONTRACTID "@mozilla.org/security/x509certlist;1"
34 %}