1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsINSSCertCache.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsIX509CertList; 1.11 + 1.12 +[scriptable, uuid(1b75bdae-1757-4322-9d1e-cfcaa18cb710)] 1.13 +interface nsINSSCertCache : nsISupports { 1.14 + 1.15 + /* 1.16 + * cacheAllCerts 1.17 + * 1.18 + * Creates a cache of all certificates currently known to NSS. 1.19 + */ 1.20 + void cacheAllCerts(); 1.21 + void cacheCertList(in nsIX509CertList list); 1.22 + 1.23 + /* 1.24 + * get an X509CertList 1.25 + */ 1.26 + nsIX509CertList getX509CachedCerts(); 1.27 + 1.28 + /* 1.29 + * getCachedCerts 1.30 + * 1.31 + * Returns the cached CERTCertList* 1.32 + */ 1.33 + [notxpcom, noscript] voidPtr getCachedCerts(); 1.34 +}; 1.35 + 1.36 +%{C++ 1.37 + 1.38 +#define NS_NSSCERTCACHE_CID { /* 3f429a14-dffe-417d-8cb8-fdf09bacd09e */ \ 1.39 + 0x3f429a14, \ 1.40 + 0xdffe, \ 1.41 + 0x417d, \ 1.42 + {0x8c, 0xb8, 0xfd, 0xf0, 0x9b, 0xac, 0xd0, 0x9e} \ 1.43 + } 1.44 + 1.45 +#define NS_NSSCERTCACHE_CONTRACTID "@mozilla.org/security/nsscertcache;1" 1.46 + 1.47 +%}