We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb783ff commit 072c006Copy full SHA for 072c006
1 file changed
src/aheader.rs
@@ -108,13 +108,11 @@ impl FromStr for Aheader {
108
.remove("keydata")
109
.context("keydata attribute is not found")
110
.and_then(|raw| {
111
- SignedPublicKey::from_base64(&raw).context("autocrypt key cannot be decoded")
112
- })
113
- .and_then(|key| {
114
- key.verify_bindings()
115
- .and(Ok(key))
116
- .context("Autocrypt key cannot be verified")
+ SignedPublicKey::from_base64(&raw).context("Autocrypt key cannot be decoded")
117
})?;
+ public_key
+ .verify_bindings()
+ .context("Autocrypt key cannot be verified")?;
118
119
let prefer_encrypt = attributes
120
.remove("prefer-encrypt")
0 commit comments