mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
value: encypted value is not signed (until decrypted)
This commit is contained in:
1 parent
fe3ded9d0f
commit
40f7399d48
3 files changed
+5
-8
No files matched your search
+2
-5
@@ -38,14 +38,11 @@ namespace dht {
|
||||
std::ostream& operator<< (std::ostream& s, const Value& v)
|
||||
{
|
||||
s << "Value[id:" << std::hex << v.id << std::dec << " ";
|
||||
if (v.isSigned())
|
||||
s << "signed (v" << v.seq << ") ";
|
||||
if (v.isEncrypted())
|
||||
s << "encrypted ";
|
||||
else if (v.isSigned()) {
|
||||
if (v.recipient == InfoHash())
|
||||
s << "signed (v" << v.seq << ") ";
|
||||
else
|
||||
s << "signed (v" << v.seq << ") ";
|
||||
if (v.recipient != InfoHash())
|
||||
s << "decrypted ";
|
||||
}
|
||||
if (not v.isEncrypted()) {
|
||||
|
||||
Reference in new issue
Block a user