Skip to content
Snippets Groups Projects
Commit 4480436c authored by Adrien Béraud's avatar Adrien Béraud
Browse files

securedht: allow certificate to be stored on longId hash

parent d4114830
No related branches found
No related tags found
No related merge requests found
...@@ -378,7 +378,7 @@ const ValueType CERTIFICATE_TYPE = { ...@@ -378,7 +378,7 @@ const ValueType CERTIFICATE_TYPE = {
try { try {
crypto::Certificate crt(v->data); crypto::Certificate crt(v->data);
// TODO check certificate signature // TODO check certificate signature
return crt.getPublicKey().getId() == id; return crt.getPublicKey().getId() == id || InfoHash::get(crt.getPublicKey().getLongId()) == id;
} catch (const std::exception& e) {} } catch (const std::exception& e) {}
return false; return false;
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment