added ability to keep track of when keys have been last used for signature check, signing and encryption, so that we can later detect which keys are unused and get rid of them

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6374 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-05-21 22:38:00 +00:00
parent bb916ad1cc
commit 2986e81f7e
4 changed files with 45 additions and 21 deletions

View file

@ -209,8 +209,9 @@ class RsPeerDetails
uint32_t visState;
/* basic stats */
uint32_t lastConnect; /* how long ago */
uint32_t connectState; /* RS_PEER_CONNECTSTATE_... */
uint32_t lastConnect; /* how long ago */
uint32_t lastUsed; /* how long ago since last used: signature verif, connect attempt, etc */
uint32_t connectState; /* RS_PEER_CONNECTSTATE_... */
std::string connectStateString; /* Additional string like ip address */
uint32_t connectPeriod;
bool foundDHT;