diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-16 11:36:12 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-16 11:37:40 +0100 |
commit | 139aa5527f9b0d400151f26187bcd27f261973bd (patch) | |
tree | b2d877333919699a6825bc311b6c6cd267f0fd02 | |
parent | 5b82408d1f53424add604c6387155f60d52cb6ee (diff) |
openpgp: Fail subkey binding verification if backsig is missing.
- Don't just return false, return a meaningful error.
-rw-r--r-- | openpgp/src/packet/signature/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/packet/signature/mod.rs b/openpgp/src/packet/signature/mod.rs index b5dd9d7c..e849f8f9 100644 --- a/openpgp/src/packet/signature/mod.rs +++ b/openpgp/src/packet/signature/mod.rs @@ -930,6 +930,9 @@ impl Signature4 { }, } } + } else { + return Err(Error::BadSignature( + "Primary key binding signature missing".into()).into()); } Ok(backsig_ok) |