|
@@ -47,6 +47,7 @@ pub enum Protocol {
|
|
|
Microdesc,
|
|
|
Relay,
|
|
|
Padding,
|
|
|
+ FlowCtrl,
|
|
|
}
|
|
|
|
|
|
impl fmt::Display for Protocol {
|
|
@@ -75,6 +76,7 @@ impl FromStr for Protocol {
|
|
|
"Microdesc" => Ok(Protocol::Microdesc),
|
|
|
"Relay" => Ok(Protocol::Relay),
|
|
|
"Padding" => Ok(Protocol::Padding),
|
|
|
+ "FlowCtrl" => Ok(Protocol::FlowCtrl),
|
|
|
_ => Err(ProtoverError::UnknownProtocol),
|
|
|
}
|
|
|
}
|
|
@@ -166,7 +168,8 @@ pub(crate) fn get_supported_protocols_cstr() -> &'static CStr {
|
|
|
LinkAuth=3 \
|
|
|
Microdesc=1-2 \
|
|
|
Relay=1-2 \
|
|
|
- Padding=1"
|
|
|
+ Padding=1 \
|
|
|
+ FlowCtrl=1"
|
|
|
)
|
|
|
} else {
|
|
|
cstr!(
|
|
@@ -180,7 +183,8 @@ pub(crate) fn get_supported_protocols_cstr() -> &'static CStr {
|
|
|
LinkAuth=1,3 \
|
|
|
Microdesc=1-2 \
|
|
|
Relay=1-2 \
|
|
|
- Padding=1"
|
|
|
+ Padding=1 \
|
|
|
+ FlowCtrl=1"
|
|
|
)
|
|
|
}
|
|
|
}
|