Commit 27693882 authored by Adrien Béraud's avatar Adrien Béraud

ringaccount: avoid accidental CertificateStore instantiation

Change-Id: I486c7f87563f56e5cd42e6e6223c694a074eac41
parent ebb9b734
......@@ -3254,7 +3254,7 @@ RingAccount::forEachDevice(const dht::InfoHash& to,
auto shared = std::static_pointer_cast<RingAccount>(shared_from_this());
auto treatedDevices = std::make_shared<std::set<dht::InfoHash>>();
dht_.get<dht::crypto::RevocationList>(to, [to](dht::crypto::RevocationList&& crl){
tls::CertificateStore().instance().pinRevocationList(to.toString(), std::move(crl));
tls::CertificateStore::instance().pinRevocationList(to.toString(), std::move(crl));
return true;
});
dht_.get<DeviceAnnouncement>(to, [shared,to,treatedDevices,op](DeviceAnnouncement&& dev) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment