arti/crates/tor-error
Nick Mathewson 0b2cf533ee tor-proto: better errors when handshake fails due to untimely certs
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.
2022-03-23 08:24:36 -04:00
..
src tor-proto: better errors when handshake fails due to untimely certs 2022-03-23 08:24:36 -04:00
Cargo.toml Bump all crates to 0.1.0 2022-03-01 08:59:34 -05:00
README.md Update README.md files from rustdoc. 2022-03-01 08:30:53 -05:00

README.md

tor-error

tor-error -- Support for error handling in Tor and Ari

Primarily, this crate provides the [ErrorKind] enum, and associated [HasKind] trait.

There is also some other miscellany, supporting error handling in crates higher up the dependency stack.

License: MIT OR Apache-2.0