We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80418dc commit dcf47c9Copy full SHA for dcf47c9
ssh-key/src/signature.rs
@@ -672,9 +672,9 @@ impl Signer<Signature> for (&RsaKeypair, Option<HashAlg>) {
672
Some(HashAlg::Sha256) => {
673
rsa::pkcs1v15::SigningKey::<Sha256>::try_from(self.0)?.try_sign(message)
674
}
675
- #[cfg(feature = "rsa-sha1")]
+ #[cfg(all(feature = "rsa", feature = "sha1"))]
676
None => rsa::pkcs1v15::SigningKey::<Sha1>::try_from(self.0)?.try_sign(message),
677
- #[cfg(not(feature = "rsa-sha1"))]
+ #[cfg(not(all(feature = "rsa", feature = "sha1")))]
678
None => return Err(Algorithm::Rsa { hash: None }.unsupported_error().into()),
679
680
.map_err(|_| signature::Error::new())?;
0 commit comments