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

crypto: compare public keys with longId

parent bd0064cf
Branches
Tags
No related merge requests found
...@@ -93,7 +93,7 @@ struct OPENDHT_PUBLIC PublicKey ...@@ -93,7 +93,7 @@ struct OPENDHT_PUBLIC PublicKey
~PublicKey(); ~PublicKey();
explicit operator bool() const { return pk; } explicit operator bool() const { return pk; }
bool operator ==(const PublicKey& o) const { bool operator ==(const PublicKey& o) const {
return pk == o.pk || getId() == o.getId(); return pk == o.pk || getLongId() == o.getLongId();
} }
bool operator !=(const PublicKey& o) const { bool operator !=(const PublicKey& o) const {
return !(*this == o); return !(*this == o);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment