merged with upstream/master

This commit is contained in:
csoler 2021-11-11 17:50:11 +01:00
commit bef780e0c7
876 changed files with 18344 additions and 15328 deletions

View file

@ -97,6 +97,10 @@ void FriendServer::handleClientPublish(const RsFriendServerClientPublishItem *it
p.have_added_this_peer[computePeerDistance(p.pgp_fingerprint, pi->second.pgp_fingerprint)] = pi->first;
}
// Now encrypt the item with the public PGP key of the destination. This prevents the wrong person to request for
// someone else's data.
#warning TODO
// Send the item.
mni->SendItem(sr_item);
@ -223,10 +227,6 @@ std::map<RsPeerId,PeerInfo>::iterator FriendServer::handleIncomingClientData(con
}
}
// Check the item's data signature. Is that needed? Not sure, since the data is sent PGP-encrypted, so only the owner
// of the secret PGP key can actually use it.
#warning TODO
// All good.
// Store/update the peer info