v0.47.0-beta.3
Breaking changes
russh
v0.47 will drop its own data parsing and key handling code in favor of the RustCrypto project's ssh-key
(#368) and ssh-encoding
(#371) crates. This means there are some breaking changes, which are listed here:
Important for library users
-
russh_keys::key::PublicKey
is replaced withrussh_keys::PublicKey
(ssh_key::PublicKey
) -
russh_keys::key::KeyPair
is replaced withrussh_keys::PrivateKey
(ssh_key::PrivateKey
) -
russh_keys::key::parse_public_key
no longer takes a hash algorithm argument as RSA keys are no longer locked down to a specific algorithm internally. RSA key specific hash algorithms are only used inPreferred::key
. -
Key type constants in
russh_keys::key
andrussh_keys::key::Name
are removed - use therussh_keys::Algorithm
enum instead.Config::preferred::key
now also takesrussh_keys::Algorithm
s instead ofrussh_key::key::Name
s. -
russh::client::Handle::authenticate_future
is renamed torussh::client::Handle::authenticate_publickey_with
Less important
-
new
russh::Error
enum variants:Error:Signature
Error:SshKey
Error:SshEncoding
-
new
russh_keys::Error
enum variants:Error::Rsa
Error::Utf8
-
russh::auth::Signer
is now anasync_trait
-
russh_keys::ec
is removed -
russh_keys::encoding
is removed (userussh_keys::ssh_encoding
) -
russh_keys::signature
is removed -
russh_keys::protocol
is removed -
russh_keys::key::SignatureHash
is replaced withrussh_keys::HashAlg
(ssh_key::HashAlg
) -
russh_keys::key::SignatureBytes
is removed -
russh_keys::key::RsaPrivate
is removed (userussh_keys::ssh_key::private::RsaPrivateKey
) -
russh_keys::key::RsaPublic
is removed (userussh_keys::ssh_key::public::RsaPublicKey
) -
russh_keys::key::RsaCrtExtra
is removed -
russh_keys::key::Signature
is replaced withrussh_keys::signature::Signature
(signature::Signature
)
Features
- aa9bdb4: added support for [email protected] and [email protected] keys in client
- 68fff93: Add support for StrictHostKeyChecking and UserKnownHostsFile (#386) (Mattias Eriksson) #386
- 981cf7b: Derive Debug where possible (#374) (Quentin Santos) #374
- c328558: Implement From<&str> and From<&[u8]> for CryptoVec (#391) (Josh McKinney) #391
Fixes
- 47ca41d: Send proper algorithm for certificates (#378) (Jerome Gravel-Niquet) #378
- 2d8c08a: ratatui examples fixed. (#388) (André Almeida) #388
- bd6dc3a: impl Drop for server examples (#376) (Eric Rodrigues Pires) #376