Brunet.Security.BroadcastRevocationHandler.HandleData C# (CSharp) 메소드

HandleData() 공개 메소드

Parses an incoming revocation and updates the revoked users hashtable if successful.
public HandleData ( MemBlock data, ISender ret, object state ) : void
data Brunet.Util.MemBlock
ret ISender
state object
리턴 void
    public void HandleData(MemBlock data, ISender ret, object state)
    {
      UserRevocationMessage urm = null;
      try {
        urm = new UserRevocationMessage(_ca_cert, data);
      } catch(Exception e) {
        ProtocolLog.WriteIf(ProtocolLog.SecurityExceptions, e.ToString());
        return;
      }


      lock(_revoked_users) {
        if(_revoked_users.Contains(urm.Username)) {
          return;
        }
        _revoked_users[urm.Username] = true;
      }

      _so.VerifySAs();
    }