diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-10-07 11:23:42 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-10-07 11:34:53 +0200 |
commit | f9e15b3974b71aed87871999014b901a5aee03a8 (patch) | |
tree | 487044e787635799d742c2d3fd995a34d7c1e4ae | |
parent | 4f5d6c6ac24f39be532636dca4c79387a13ca856 (diff) |
openpgp: Improve cert canonicalization corner case.
- If a signature has no issuer information, assume it is a
self-signature. If it is not, then there is no way to know who
made the signature.
-rw-r--r-- | openpgp/src/cert/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs index 19dae9ec..f0402e7c 100644 --- a/openpgp/src/cert/mod.rs +++ b/openpgp/src/cert/mod.rs @@ -1590,7 +1590,8 @@ impl Cert { let issuers = sig.get_issuers(); let is_selfsig = - issuers.contains(&primary_fp) + issuers.is_empty() + || issuers.contains(&primary_fp) || issuers.contains(&primary_keyid); macro_rules! check_one { |