Merged branch that provide group-based file permissions.

Now users can sort peers into groups in the friend list, and attribute flags and parent groups to the
directories in the share manager.

Flags are B-B-N, meaning in order:
- browsable for peers in the parent groups
- browsable for everyone
- network wide for everyone
Backward compatibility makes previously BN flags been interpreted as -BN, meaning browsable/network wide for everyone.

Be careful with this new feature. It has been tested, but it's a bit early to rely on it for highly sensitive data.

The merge also includes a significant improvement of the naming of flags with incompatible types
which should sort out some existing bugs as well, since inconsistencies in flag usage have been
found during the process.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5787 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-11-07 20:03:16 +00:00
commit 6edb9eb4f8
64 changed files with 1389 additions and 824 deletions

View file

@ -66,7 +66,7 @@
//#define DISABLE_BAD_PEER_FILTER 1
//#define USE_HISTORY 1
#define USE_HISTORY 1
#define HISTORY_PERIOD 60
@ -806,10 +806,10 @@ void bdNode::msgout_ping(bdId *id, bdToken *transId)
// THIS IS CRASHING HISTORY.
// LIKELY ID is not always valid!
// Either PotentialPeers or Out-Of-Date Peers.
//registerOutgoingMsg(id, transId, BITDHT_MSG_TYPE_PING);
registerOutgoingMsg(id, transId, BITDHT_MSG_TYPE_PING);
bdId dupId(*id);
registerOutgoingMsg(&dupId, transId, BITDHT_MSG_TYPE_PING);
//bdId dupId(*id);
//registerOutgoingMsg(&dupId, transId, BITDHT_MSG_TYPE_PING);
/* create string */
char msg[10240];