value: encypted value is not signed (until decrypted)

This commit is contained in:
Adrien Béraud committed 2015-08-23 17:36:24 +02:00
1 parent fe3ded9d0f
commit 40f7399d48
3 files changed
+5 -8

No files matched your search

+2 -5
View File
@@ -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()) {