tor-proto: Add a TODO about checking if a hop is allowed to create streams.

This commit is contained in:
Gabriela Moldovan 2023-08-01 18:56:17 +01:00
parent ffe4771a83
commit 2f21dc5a87
No known key found for this signature in database
GPG Key ID: 3946E0ADE72BAC99
1 changed files with 3 additions and 0 deletions

View File

@ -185,6 +185,9 @@ pub(super) enum CtrlMsg {
incoming_sender: mpsc::Sender<IncomingStreamRequestContext>,
/// A `CmdChecker` to keep track of which message types are acceptable.
cmd_checker: AnyCmdChecker,
// TODO HSS: add a hop_num field specifying which hop in the circuit is allowed to create
// streams, if any (if we find that a different hop in the circuit is attempting to create
// a stream we should return an error).
},
/// Send a given control message on this circuit, and install a control-message handler to
/// receive responses.