diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-10-02 12:12:42 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-10-02 12:12:42 +0200 |
commit | f9b4a6bde0edef6557233b0e7d3a80bb26e3085a (patch) | |
tree | 19be7d5ea91f7b2eecd685619775b4efc1a27127 /openpgp/src | |
parent | 44fbe64f03bfe8bce11ab9115d1ee621677e0476 (diff) |
openpgp: Only add issuer fingerprint information to v4 and up sigs.
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/packet/signature.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/openpgp/src/packet/signature.rs b/openpgp/src/packet/signature.rs index 66fc9d83..b8fce53c 100644 --- a/openpgp/src/packet/signature.rs +++ b/openpgp/src/packet/signature.rs @@ -2736,10 +2736,12 @@ impl Signature { self.additional_issuers.push(id); } - let fp = KeyHandle::from(key.fingerprint()); - if ! (issuers.contains(&fp) - || self.additional_issuers.contains(&fp)) { - self.additional_issuers.push(fp); + if self.version() >= 4 { + let fp = KeyHandle::from(key.fingerprint()); + if ! (issuers.contains(&fp) + || self.additional_issuers.contains(&fp)) { + self.additional_issuers.push(fp); + } } } result |