Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add partial support for SSH known hosts markers #11635

Merged
merged 7 commits into from
Feb 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cargo fmt
  • Loading branch information
hds committed Jan 31, 2023
commit 7a6ff7f068acde98230d712637e934c58fc84805
9 changes: 7 additions & 2 deletions src/cargo/sources/git/known_hosts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 867,12 @@ mod tests {
SshHostKeyType::Ed255219,
&khs[0].key,
) {
Err(KnownHostError::HostKeyRevoked { hostname, remote_host_key, location, .. }) => {
Err(KnownHostError::HostKeyRevoked {
hostname,
remote_host_key,
location,
..
}) => {
assert_eq!("example.com", hostname);
assert_eq!(
"AAAAC3NzaC1lZDI1NTE5AAAAIKVYJpa0yUGaNk0NXQTPWa0tHjqRpx 7hl2diReH6DtR",
Expand All @@ -877,7 882,7 @@ mod tests {
location,
KnownHostLocation::File { lineno: 4, .. }
));
},
}
_ => panic!("Expected host key to be reject with error HostKeyRevoked."),
}
}
Expand Down