diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-07-09 12:15:15 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-07-16 10:49:52 +0200 |
commit | 798296af87fe5a0c934f0274e8b2928d05f6056b (patch) | |
tree | ff106bd915b51eb751f1b6c3a3cbef7073c23412 | |
parent | a847f2f35b5d2bbe60edfbd3a44d053bc66cb876 (diff) |
xxx support backsigs on certification subkeys
-rw-r--r-- | openpgp/src/signature.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/signature.rs b/openpgp/src/signature.rs index 08c05b2e..00c8ca7e 100644 --- a/openpgp/src/signature.rs +++ b/openpgp/src/signature.rs @@ -422,7 +422,7 @@ impl Signature { pub fn verify_subkey_binding(&self, signer: &Key, pk: &Key, subkey: &Key) -> Result<bool> { - if self.sigtype != SignatureType::SubkeyBinding { + if self.sigtype != SignatureType::SubkeyBinding && self.sigtype != SignatureType::PrimaryKeyBinding { return Err(Error::UnsupportedSignatureType(self.sigtype).into()); } @@ -434,7 +434,7 @@ impl Signature { return Ok(false); } - if ! self.key_flags().can_sign() { + if ! (self.key_flags().can_sign() || self.key_flags().can_certify()) { // No backsig required. return Ok(true) } |