Skip to main content

Crate justssh_wire

Crate justssh_wire 

Source
Expand description

SSH message encoding and decoding, with no dependencies.

Re-exports§

pub use codec::DecodeError;
pub use codec::Reader;
pub use codec::Writer;

Modules§

codec
RFC 4251 §5 data types: byte, boolean, uint32, string, mpint and name-list.
number
Message numbers (RFC 4250 §4.1, RFC 5656 §7.1).

Structs§

ChannelClose
SSH_MSG_CHANNEL_CLOSE.
ChannelData
SSH_MSG_CHANNEL_DATA.
ChannelEof
SSH_MSG_CHANNEL_EOF.
ChannelExtendedData
SSH_MSG_CHANNEL_EXTENDED_DATA; code 1 is stderr.
ChannelFailure
SSH_MSG_CHANNEL_FAILURE.
ChannelOpen
SSH_MSG_CHANNEL_OPEN (RFC 4254 §5.1). data is the channel-type-specific part, undecoded.
ChannelOpenConfirmation
SSH_MSG_CHANNEL_OPEN_CONFIRMATION. data is the channel-type-specific part, undecoded.
ChannelOpenFailure
SSH_MSG_CHANNEL_OPEN_FAILURE.
ChannelRequest
SSH_MSG_CHANNEL_REQUEST (RFC 4254 §5.4). data is the request-type-specific part, undecoded.
ChannelSuccess
SSH_MSG_CHANNEL_SUCCESS.
ChannelWindowAdjust
SSH_MSG_CHANNEL_WINDOW_ADJUST.
Debug
SSH_MSG_DEBUG.
Disconnect
SSH_MSG_DISCONNECT.
ExtInfo
SSH_MSG_EXT_INFO (RFC 8308 §2.3): extension names and their values.
GlobalRequest
SSH_MSG_GLOBAL_REQUEST (RFC 4254 §4). data is the request-specific part, undecoded.
Ignore
SSH_MSG_IGNORE.
KexEcdhInit
SSH_MSG_KEX_ECDH_INIT: the client’s ephemeral public key Q_C.
KexEcdhReply
SSH_MSG_KEX_ECDH_REPLY: the server’s host key K_S, ephemeral public key Q_S and the signature over the exchange hash.
KexInit
SSH_MSG_KEXINIT (RFC 4253 §7.1).
Name
A request name or channel type exactly as sent, which need not be UTF-8. It compares equal to a str holding the same bytes, and shows as escape_ascii does.
NewKeys
SSH_MSG_NEWKEYS.
Ping
SSH2_MSG_PING (OpenSSH PROTOCOL §1.8).
Pong
SSH2_MSG_PONG: the data of the SSH2_MSG_PING it answers.
RequestFailure
SSH_MSG_REQUEST_FAILURE: everything after the number, undecoded.
RequestSuccess
SSH_MSG_REQUEST_SUCCESS: everything after the number, undecoded.
ServiceAccept
SSH_MSG_SERVICE_ACCEPT.
ServiceRequest
SSH_MSG_SERVICE_REQUEST.
Unimplemented
SSH_MSG_UNIMPLEMENTED: the sequence number of the packet that was not understood.
UserauthBanner
SSH_MSG_USERAUTH_BANNER (RFC 4252 §5.4), its strings kept as sent.
UserauthFailure
SSH_MSG_USERAUTH_FAILURE.
UserauthRequest
SSH_MSG_USERAUTH_REQUEST (RFC 4252 §5). method_data is everything after the method name, left undecoded; it can hold a password, so Debug shows only its length.
UserauthSuccess
SSH_MSG_USERAUTH_SUCCESS.

Enums§

Message
A transport message, or the number of one this crate does not decode.