feat(bsr/ssh): Support decoding chunks

This adds a function for decoding all of the SSH Chunk types and
registers the function with the chunk types so that the bsr.ChunkDecode
can be used to decode SSH Chunks.
This commit is contained in:
Timothy Messier committed 2023-05-31 12:18:20 +00:00
1 parent fe870fc989
commit f983a05a3e
21 files changed
+1023 -41

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ const ShellRequestType = "shell"
// ShellRequest is a chunk to contain data for an SSH Shell request
type ShellRequest struct {
bsr.BaseChunk
*bsr.BaseChunk
*pssh.ShellRequest
}
@@ -59,7 +59,7 @@ func NewShellRequest(ctx context.Context, d bsr.Direction, t *bsr.Timestamp, r *
}
reqData := &ShellRequest{
BaseChunk: *baseChunk,
BaseChunk: baseChunk,
ShellRequest: &pssh.ShellRequest{
RequestType: r.Type,
WantReply: r.WantReply,