Skip to content

Commit

Permalink
Fix tests after adding strict kex
Browse files Browse the repository at this point in the history
  • Loading branch information
mkj committed Dec 28, 2023
1 parent 92975ad commit a3bdfcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/encrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ mod tests {
discard_next: false,
is_client: false,
send_ext_info: true,
strict_kex: false,
})
})
// and plaintext
Expand Down
4 changes: 2 additions & 2 deletions src/kex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,8 @@ mod tests {
let serv_init = if let Packet::KexInit(k) = serv_init { k } else { panic!() };
assert!(ts.next().is_none());

serv.handle_kexinit(cli_init, false, &serv_conf, &version, &mut ts.sender()).unwrap();
cli.handle_kexinit(serv_init, true, &cli_conf, &version, &mut tc.sender()).unwrap();
serv.handle_kexinit(cli_init, false, &serv_conf, &version, true, &mut ts.sender()).unwrap();
cli.handle_kexinit(serv_init, true, &cli_conf, &version, true, &mut tc.sender()).unwrap();

let cli_dhinit = tc.next().unwrap();
let cli_dhinit = if let Packet::KexDHInit(k) = cli_dhinit { k } else { panic!() };
Expand Down

0 comments on commit a3bdfcc

Please sign in to comment.