Skip to main content

Module responder

Module responder 

Source
Expand description

Relay responder channel.

Code related to the relay channel opened as a responder. The handshake code is responsible for creating an MaybeVerifiableRelayResponderChannel when accepting an inbound connection.

It can then be used to get a fully working channel.

Re-exportsยง

use digest::Digest; ๐Ÿ”’
use futures::AsyncRead; ๐Ÿ”’
use futures::AsyncWrite; ๐Ÿ”’
use safelog::MaybeSensitive; ๐Ÿ”’
use safelog::Sensitive; ๐Ÿ”’
use std::net::IpAddr; ๐Ÿ”’
use std::ops::Deref; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use subtle::ConstantTimeEq; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tor_cell::chancell::msg; ๐Ÿ”’
use tor_linkspec::HasRelayIds; ๐Ÿ”’
use tor_linkspec::OwnedChanTarget; ๐Ÿ”’
use tor_linkspec::RelayIds; ๐Ÿ”’
use tor_llcrypto as ll; ๐Ÿ”’
use tor_llcrypto::pk::ed25519::Ed25519Identity; ๐Ÿ”’
use tor_llcrypto::pk::rsa::RsaIdentity; ๐Ÿ”’
use tor_rtcompat::CertifiedConn; ๐Ÿ”’
use tor_rtcompat::CoarseTimeProvider; ๐Ÿ”’
use tor_rtcompat::Runtime; ๐Ÿ”’
use tor_rtcompat::SleepProvider; ๐Ÿ”’
use tor_rtcompat::StreamOps; ๐Ÿ”’
use web_time_compat::SystemTime; ๐Ÿ”’
use web_time_compat::SystemTimeExt; ๐Ÿ”’
use crate::ClockSkew; ๐Ÿ”’
use crate::Error; ๐Ÿ”’
use crate::RelayChannelAuthMaterial; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use crate::channel::Channel; ๐Ÿ”’
use crate::channel::ChannelMode; ๐Ÿ”’
use crate::channel::ClogDigest; ๐Ÿ”’
use crate::channel::Reactor; ๐Ÿ”’
use crate::channel::SlogDigest; ๐Ÿ”’
use crate::channel::circmap::CircIdRange; ๐Ÿ”’
use crate::channel::handshake::UnverifiedChannel; ๐Ÿ”’
use crate::channel::handshake::VerifiedChannel; ๐Ÿ”’
use crate::peer::PeerAddr; ๐Ÿ”’
use crate::peer::PeerInfo; ๐Ÿ”’
use crate::relay::CreateRequestHandler; ๐Ÿ”’
use crate::relay::channel::ChannelAuthenticationData; ๐Ÿ”’

Structsยง

NonVerifiableResponderRelayChannel
A channel that can NOT be verified. This is solely either a client or bridge on the other end.
UnverifiedResponderRelayChannel
A verifiable relay responder channel that is currently unverified. This can only be a relay on the other end.
VerifiedResponderRelayChannel
A verified relay responder channel.

Enumsยง

MaybeVerifiableRelayResponderChannel
An enum combining both the possibility of a verifiable (relay) or non verifiable channel (client/bridge).