From 4fe938ed7aec8feb08e9a512a2bd020d9952de4b Mon Sep 17 00:00:00 2001 From: Jerome Gravel-Niquet Date: Thu, 23 Jan 2025 16:06:14 -0500 Subject: [PATCH] Send proper algorithm for certificates (#451) --- russh/src/client/encrypted.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/russh/src/client/encrypted.rs b/russh/src/client/encrypted.rs index 42e4335c..2c124bfc 100644 --- a/russh/src/client/encrypted.rs +++ b/russh/src/client/encrypted.rs @@ -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 } => {