From 4b992cbd893c8469d70b76653f74b26f240683ca Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 27 Sep 2022 12:25:00 -0400 Subject: [PATCH] New ErrorKind::LocalProtocolFailed. This type is by analogy to `RemoteProtocolFailed`; we'll use it for cases when the Socks proxy refuses to talk to us. --- crates/tor-error/semver.md | 2 ++ crates/tor-error/src/lib.rs | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 crates/tor-error/semver.md diff --git a/crates/tor-error/semver.md b/crates/tor-error/semver.md new file mode 100644 index 000000000..b5adfcb64 --- /dev/null +++ b/crates/tor-error/semver.md @@ -0,0 +1,2 @@ +MODIFIED: New LocalProtocolFailed ErrorKind. + diff --git a/crates/tor-error/src/lib.rs b/crates/tor-error/src/lib.rs index 6a83e6fa5..d23a30753 100644 --- a/crates/tor-error/src/lib.rs +++ b/crates/tor-error/src/lib.rs @@ -339,6 +339,13 @@ pub enum ErrorKind { #[display(fmt = "problem with network or connection")] LocalNetworkError, + /// A problem occurred with a protocol to a local (not anonymized) party. + /// + /// This is likely a protocol-specific problem, such as bad authentication + /// over SOCKS. + #[display(fmt = "local authentication refused.")] + LocalProtocolFailed, + /// A relay had an identity other than the one we expected. /// /// This could indicate a MITM attack, but more likely indicates that the