Get rid of expiration in Capability and Tag and move this to NetworkConfig so it can be set network-wide and reset if needed. Also add NetworkConfig field for this and centralize checking of credential time validity.

This commit is contained in:
Adam Ierymenko 2016-08-22 18:06:46 -07:00
parent 6db47de25e
commit 9a3c652a51
9 changed files with 51 additions and 70 deletions

View file

@ -86,7 +86,7 @@ int Membership::addCredential(const RuntimeEnvironment *RR,const CertificateOfMe
if (_com == com)
return 0;
const int vr = com.verify(RR);
if ((vr == 0)&&(com.revision() > _com.revision()))
if ((vr == 0)&&(com.timestamp().first > _com.timestamp().first))
_com = com;
return vr;
}