rust: format ssh files

Ticket: 3836
pull/15451/head
Philippe Antoine 3 months ago committed by Victor Julien
parent fe27a2159c
commit edf29b0000

@ -391,7 +391,7 @@ jobs:
- run: rustfmt --check rust/src/dns/*.rs rust/src/applayertemplate/*.rs rust/src/asn1/*.rs
rust/src/bittorrent_dht/*.rs rust/src/enip/*.rs rust/src/ffi/*.rs rust/src/ftp/*.rs
rust/src/ldap/*.rs rust/src/mime/*.rs rust/src/ntp/*.rs rust/src/quic/*.rs
rust/src/rfb/*.rs
rust/src/rfb/*.rs rust/src/ssh/*.rs
- name: Check if Cargo.lock.in is up to date
run: |
cp rust/Cargo.lock rust/Cargo.lock.in

@ -77,7 +77,8 @@ pub fn ssh_parse_line(i: &[u8]) -> IResult<&[u8], &[u8]> {
terminated(
take_while(is_not_lineend),
alt((tag("\n"), tag("\r\n"), parser)),
).parse(i)
)
.parse(i)
}
#[derive(PartialEq, Eq)]

@ -133,8 +133,8 @@ impl SSHState {
}
fn parse_record(
&mut self, mut input: &[u8], resp: bool, pstate: *mut AppLayerParserState,
flow: *mut Flow, stream_slice: &StreamSlice,
&mut self, mut input: &[u8], resp: bool, pstate: *mut AppLayerParserState, flow: *mut Flow,
stream_slice: &StreamSlice,
) -> AppLayerResult {
let (hdr, ohdr) = if !resp {
(&mut self.transaction.cli_hdr, &self.transaction.srv_hdr)

Loading…
Cancel
Save