We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8be5415 commit 3f414c5Copy full SHA for 3f414c5
src/servauth.rs
@@ -130,7 +130,12 @@ impl ServAuth {
130
// Extract the signature separately. The message for the signature
131
// includes the auth packet without the signature part.
132
let (key, sig) = match &mut p.method {
133
- AuthMethod::PubKey(m) => (&m.pubkey.0, m.sig.take()),
+ AuthMethod::PubKey(m) => {
134
+ let sig = m.sig.take();
135
+ // When we have a signature, we need to set force_sig=true so that the encoded message for verification has the boolean set correctly
136
+ m.force_sig = sig.is_some();
137
+ (&m.pubkey.0, sig)
138
+ }
139
_ => return Err(Error::bug()),
140
};
141
0 commit comments