Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeidnx authored and yodaldevoid committed Nov 5, 2024
1 parent c9e1d86 commit 19c48dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ pub enum HostKeyType {
Ecdsa256 = raw::LIBSSH2_HOSTKEY_TYPE_ECDSA_256 as isize,
Ecdsa384 = raw::LIBSSH2_HOSTKEY_TYPE_ECDSA_384 as isize,
Ecdsa521 = raw::LIBSSH2_HOSTKEY_TYPE_ECDSA_521 as isize,
Ed255219 = raw::LIBSSH2_HOSTKEY_TYPE_ED25519 as isize,
Ed25519 = raw::LIBSSH2_HOSTKEY_TYPE_ED25519 as isize,
}

#[allow(missing_docs)]
Expand Down Expand Up @@ -356,7 +356,7 @@ pub enum KnownHostKeyFormat {
Ecdsa256 = raw::LIBSSH2_KNOWNHOST_KEY_ECDSA_256 as isize,
Ecdsa384 = raw::LIBSSH2_KNOWNHOST_KEY_ECDSA_384 as isize,
Ecdsa521 = raw::LIBSSH2_KNOWNHOST_KEY_ECDSA_521 as isize,
Ed255219 = raw::LIBSSH2_KNOWNHOST_KEY_ED25519 as isize,
Ed25519 = raw::LIBSSH2_KNOWNHOST_KEY_ED25519 as isize,
}

impl From<HostKeyType> for KnownHostKeyFormat {
Expand All @@ -368,7 +368,7 @@ impl From<HostKeyType> for KnownHostKeyFormat {
HostKeyType::Ecdsa256 => KnownHostKeyFormat::Ecdsa256,
HostKeyType::Ecdsa384 => KnownHostKeyFormat::Ecdsa384,
HostKeyType::Ecdsa521 => KnownHostKeyFormat::Ecdsa521,
HostKeyType::Ed255219 => KnownHostKeyFormat::Ed255219,
HostKeyType::Ed25519 => KnownHostKeyFormat::Ed25519,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ impl Session {
raw::LIBSSH2_HOSTKEY_TYPE_ECDSA_256 => HostKeyType::Ecdsa256,
raw::LIBSSH2_HOSTKEY_TYPE_ECDSA_384 => HostKeyType::Ecdsa384,
raw::LIBSSH2_HOSTKEY_TYPE_ECDSA_521 => HostKeyType::Ecdsa521,
raw::LIBSSH2_HOSTKEY_TYPE_ED25519 => HostKeyType::Ed255219,
raw::LIBSSH2_HOSTKEY_TYPE_ED25519 => HostKeyType::Ed25519,
raw::LIBSSH2_HOSTKEY_TYPE_UNKNOWN => HostKeyType::Unknown,
_ => HostKeyType::Unknown,
};
Expand Down

0 comments on commit 19c48dd

Please sign in to comment.