Skip to content

Commit

Permalink
Send proper algorithm for certificates (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn authored Jan 23, 2025
1 parent 7ca359e commit 4fe938e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion russh/src/client/encrypted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ impl Encrypted {

match key {
PublicKeyOrCertificate::Certificate(cert) => {
cert.algorithm().encode(buffer)?;
cert.algorithm().to_certificate_type().encode(buffer)?;
cert.to_bytes()?.encode(buffer)?;
}
PublicKeyOrCertificate::PublicKey { key, hash_alg } => {
Expand Down

0 comments on commit 4fe938e

Please sign in to comment.