Skip to content
Snippets Groups Projects
  1. Mar 30, 2022
  2. Mar 29, 2022
  3. Mar 28, 2022
  4. Mar 27, 2022
  5. Mar 25, 2022
  6. Mar 24, 2022
  7. Mar 23, 2022
    • eta's avatar
      Implement a periodic task scheduler, and a basic dormant mode · 1ca79ff9
      eta authored
      This is a revised version of !397; it implements a scheduling system for
      periodic tasks that can be externally controlled, and then uses the
      external control aspect to implement a basic dormant mode (#90).
      
      More technically, the scheduling system consists of a `Stream` that
      periodic tasks are expected to embed in a `while` loop or similar, a
      way for tasks themselves to choose how long to wait until the stream
      next yields a result, and a handle to control this outside of the task.
      1ca79ff9
    • Nick Mathewson's avatar
      Merge branch 'netinfo-clock-skew' into 'main' · 791394cd
      Nick Mathewson authored
      tor-proto: add the ability to learn clock skew from NETINFO cells
      
      See merge request tpo/core/arti!410
      791394cd
    • Nick Mathewson's avatar
      tor-proto: better errors when handshake fails due to untimely certs · 0b2cf533
      Nick Mathewson authored
      We now check the handshake certificates unconditionally, and only
      report them as _expired_ as a last resort.
      
      (Rationale: if somebody is presenting the wrong identity from a year
      ago, it is more interesting that they are presenting the wrong ID
      than it is that they are doing so with an expired cert.
      
      We also now report a different error if the certificate is expired,
      but its expiration is within the range of reported clock skew.
      
      (Rationale: it's helpful to distinguish this case, so that we can
      blame the failure on possible clock skew rather than definitely
      attributing it to a misbehaving relay.)
      
      Part of #405.
      0b2cf533
Loading