From 8d030f75f6fa38b9ef1901fbe1eaf317935631ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <> Date: Mon, 19 May 2025 17:27:28 -0400 Subject: [PATCH] valuetype: compare certificate using longId --- include/opendht/securedht.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/opendht/securedht.h b/include/opendht/securedht.h index 801e3def..faddef7c 100644 --- a/include/opendht/securedht.h +++ b/include/opendht/securedht.h @@ -387,7 +387,7 @@ const ValueType CERTIFICATE_TYPE = { }, [](InfoHash, const Sp& o, Sp& n, const InfoHash&, const SockAddr&) { try { - return crypto::Certificate(o->data).getPublicKey().getId() == crypto::Certificate(n->data).getPublicKey().getId(); + return crypto::Certificate(o->data).getPublicKey().getLongId() == crypto::Certificate(n->data).getPublicKey().getLongId(); } catch (const std::exception& e) {} return false; }