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 nsIX509CertList; michael@0: michael@0: [scriptable, uuid(1b75bdae-1757-4322-9d1e-cfcaa18cb710)] michael@0: interface nsINSSCertCache : nsISupports { michael@0: michael@0: /* michael@0: * cacheAllCerts michael@0: * michael@0: * Creates a cache of all certificates currently known to NSS. michael@0: */ michael@0: void cacheAllCerts(); michael@0: void cacheCertList(in nsIX509CertList list); michael@0: michael@0: /* michael@0: * get an X509CertList michael@0: */ michael@0: nsIX509CertList getX509CachedCerts(); michael@0: michael@0: /* michael@0: * getCachedCerts michael@0: * michael@0: * Returns the cached CERTCertList* michael@0: */ michael@0: [notxpcom, noscript] voidPtr getCachedCerts(); michael@0: }; michael@0: michael@0: %{C++ michael@0: michael@0: #define NS_NSSCERTCACHE_CID { /* 3f429a14-dffe-417d-8cb8-fdf09bacd09e */ \ michael@0: 0x3f429a14, \ michael@0: 0xdffe, \ michael@0: 0x417d, \ michael@0: {0x8c, 0xb8, 0xfd, 0xf0, 0x9b, 0xac, 0xd0, 0x9e} \ michael@0: } michael@0: michael@0: #define NS_NSSCERTCACHE_CONTRACTID "@mozilla.org/security/nsscertcache;1" michael@0: michael@0: %}