RetroShare/libretroshare
csoler 9004aa79f0 Made a pass on the code in p3disc. Corrected some bugs:
- suppressed an unwanted return in packet treatment
	- prevented sending info to a peer about itself
	- changed askInfoToAllPeers() such as not to discard info from peers with
	  NODISC flag (because we especially need info for these)
	- enabled receiving p3disc info even if p3discovery is disabled. Indeed,
	  disabeling p3disc is a measure of protection, so it should limit the
	  export of p3disc info, not the import.
	- removed test discarding info about dummy friends, because it is useless
	- don't discard info about peers that have the NODISC flag (meaning that we
	  especially need info for them)
	- added safety check about received GPG keys. Before we relied on this test
	  being performed by p3ConnMgr::addFriend()
	- added some debug info



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3102 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-10 13:14:09 +00:00
..