diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-09-17 16:17:35 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-09-17 16:39:43 +0200 |
commit | 1324bc3db18dbf9e27db2903515ac6c8f5b30704 (patch) | |
tree | fec18fab616c51f9bc05966261ae75d5fb40bfa8 /openpgp/src/parse | |
parent | 922c47f1c4ccc05c3d1f121df02cf685f857e435 (diff) |
openpgp: Change TPK::primary_key_signature to take a time.
- Change `TPK::primary_key_signature` and
`TPK::primary_key_signature_full` to take an additional parameter,
a time.
- Return the primary key signature at that time rather than the
newest primary key signature.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/stream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 0d5e8e01..4565db6c 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -519,7 +519,7 @@ impl<'a, H: VerificationHelper> Verifier<'a, H> { for (i, tpk) in v.tpks.iter().enumerate() { if can_sign(tpk.primary().key(), - tpk.primary_key_signature(), t) { + tpk.primary_key_signature(None), t) { v.keys.insert(tpk.keyid(), (i, 0)); } @@ -1306,7 +1306,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> { }; if can_sign(tpk.primary().key().into(), - tpk.primary_key_signature()) { + tpk.primary_key_signature(None)) { v.keys.insert(tpk.keyid(), (i, 0)); } |