Skip to content
Snippets Groups Projects
Commit 0afd8ab1 authored by Matt Johnston's avatar Matt Johnston
Browse files

minor doc changes

parent b6afd109
Branches
No related merge requests found
...@@ -22,10 +22,10 @@ to get a backtrace. ...@@ -22,10 +22,10 @@ to get a backtrace.
## Serialisation/deserialisation ## Serialisation/deserialisation
Previously the code used serde with a custom `Serializer`/`Deserializer`. That worked Previously the code used `serde` with a custom `Serializer`/`Deserializer`. That worked
fine for serializing and `derive(Deserialize)`, but deserializing enums was a pain. fine for serializing and `derive(Deserialize)`, but deserializing enums was a pain.
For types like `packets::ChannelRequest` For types like `packets::ChannelRequest`
the deserializer had to stash the channel request type string from the parent struct somewhere, the deserializer had to stash the channel request type string from the `ChannelRequest` struct somewhere,
then use that later when deserialising the `ChannelReqType` enum. Other response packets like number 60 `Userauth60` then use that later when deserialising the `ChannelReqType` enum. Other response packets like number 60 `Userauth60`
mean completely different things depending on the previous request, but that state is hard to pass through mean completely different things depending on the previous request, but that state is hard to pass through
the deserializer. the deserializer.
......
//! Named SSH algorithms, methods and extensions. This module also serves as //! Named SSH algorithms, methods and extensions. This module also serves as
//! an index of SSH specifications. //! an index of SSH specifications.
//! Some identifiers are also listed directly in `packet.rs` derive attributes.
//! Packet numbers are listed in `packet.rs`.
/// [RFC8731](https://tools.ietf.org/html/rfc8731) /// [RFC8731](https://tools.ietf.org/html/rfc8731)
pub const SSH_NAME_CURVE25519: &str = "curve25519-sha256"; pub const SSH_NAME_CURVE25519: &str = "curve25519-sha256";
/// An older alias prior to standardisation. Eventually could be removed /// An older alias prior to standardisation. Eventually could be removed
...@@ -47,3 +50,5 @@ pub const SSH_AUTHMETHOD_PUBLICKEY: &str = "publickey"; ...@@ -47,3 +50,5 @@ pub const SSH_AUTHMETHOD_PUBLICKEY: &str = "publickey";
/// [RFC4256](https://tools.ietf.org/html/rfc4256) /// [RFC4256](https://tools.ietf.org/html/rfc4256)
pub const SSH_AUTHMETHOD_INTERACTIVE: &str = "keyboard-interactive"; pub const SSH_AUTHMETHOD_INTERACTIVE: &str = "keyboard-interactive";
/// [RFC4254](https://tools.ietf.org/html/rfc4254)
pub const SSH_EXTENDED_DATA_STDERR: u32 = 1;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment