The functionality provided by nsINSSCertCache has been redundant for a
while now. To prevent potential confusion, it has been removed[0][1]. If
you ever needed to do something like this (to get a list of all known
certificates, for example) :
let certcache = Cc["@mozilla.org/security/nsscertcache;1"]
.createInstance(Ci.nsINSSCertCache);
certcache.cacheAllCerts();
let certlist = certcache.getX509CachedCerts();
The canonical way is now this:
let certdb = Cc["@mozilla.org/security/x509certdb;1"]
.getService(Ci.nsIX509CertDB);
let certlist = certdb.getCerts();
If you ever needed to do something like this:
let certcache = Cc["@mozilla.org/security/nsscertcache;1"]
.createInstance(Ci.nsINSSCertCache);
certcache.cacheCertList(someX509CertList);
...
let certlist = certcache.getX509CachedCerts();
The original nsIX509CertList ("someX509CertList" in this example) should
be used directly.
Cheers,
David
[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1147085
[1] https://hg.mozilla.org/mozilla-central/rev/1dfe22ca4abe
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform