michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsISimpleEnumerator; michael@0: interface nsIX509Cert; michael@0: michael@0: [scriptable, uuid(a539759b-e22d-462f-94ea-2915b11b33e8)] michael@0: interface nsIX509CertList : nsISupports { michael@0: void addCert(in nsIX509Cert cert); michael@0: void deleteCert(in nsIX509Cert cert); michael@0: nsISimpleEnumerator getEnumerator(); michael@0: michael@0: /* getRawCertList MUST be called only from functions where michael@0: * the nssShutdownPreventionLock has been adquired. michael@0: */ michael@0: [notxpcom, noscript] voidPtr getRawCertList(); michael@0: michael@0: }; michael@0: michael@0: %{C++ michael@0: michael@0: #define NS_X509CERTLIST_CID { /* 959fb165-6517-487f-ab9b-d8913be53197 */ \ michael@0: 0x959fb165, \ michael@0: 0x6517, \ michael@0: 0x487f, \ michael@0: {0xab, 0x9b, 0xd8, 0x91, 0x3b, 0xe5, 0x31, 0x97} \ michael@0: } michael@0: michael@0: #define NS_X509CERTLIST_CONTRACTID "@mozilla.org/security/x509certlist;1" michael@0: michael@0: %}