Expand description
Implementations for the channel handshake
StructsΒ§
- Unverified
Channel π - A base channel on which versions have been negotiated and the relayβs handshake has been read, but where the certs have not been checked.
- Unverified
Initiator πChannel - A base initiator channel on which versions have been negotiated and the relayβs handshake has
been read, but where the
msg::Certshas not been checked. - Verified
Channel π - A base channel on which versions have been negotiated, relayβs handshake has been read, but the client has not yet finished the handshake.
EnumsΒ§
- Auth
LogAction π - Helper: This enum is for adding semantic to the function receiving cells indicating it to either take the auth log out or leave it in place.
StaticsΒ§
- LINK_
PROTOCOLS π - A list of the link protocols that we support.
TraitsΒ§
- Channel
Base πHandshake - Base trait that all handshake type must implement.
- Channel
Initiator πHandshake - Handshake initiator base trait. All initiator handshake should implement this trait in order to enjoy the helper functions.
FunctionsΒ§
- build_
filtered_ πchan_ target - Helper: Build a OwnedChanTarget that retains only the address that was actually used.
- check_
cert_ πtimeliness - Helper: given a time-bound input, give a result reflecting its
validity at
now, and the inner object. - get_
cert π - Helper: get a cert from our Certs cell, and convert errors appropriately.
- read_
msg π - Read a message from the stream.
- unauthenticated_
clock_ πskew - Helper: Calculate a clock skew from the msg::Netinfo cell data and the time at which we sent the msg::Versions cell.
- verify_
link_ πauth_ cert - Validate the LINK_AUTH cert (CertType 6).