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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user