diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 12:50:10 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 12:50:10 +0100 |
commit | 20ae3ec8a5ae7d594643f3949693d64a24791f2c (patch) | |
tree | 2874fd480aead1ec31cd9892c48537fd84fac7b4 /openpgp/src/serialize/stream.rs | |
parent | c0c2c235d0d90c7a56b763b08fa8c909aa389c82 (diff) |
openpgp: Remove all calls to Time::canonicalize.
- Now that we store timestamps in OpenPGP's native encoding, the
canonicalization happens when converting to it.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index 9137dd96..2b53cb7a 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -44,7 +44,6 @@ use crate::types::{ SignatureType, SymmetricAlgorithm, }; -use crate::conversions::Time; /// Cookie must be public because the writers are. #[doc(hidden)] @@ -420,7 +419,7 @@ impl<'a> Signer<'a> { // Make and hash a signature packet. let mut sig = signature::Builder::new(SignatureType::Binary) .set_signature_creation_time( - std::time::SystemTime::now().canonicalize())? + std::time::SystemTime::now())? .set_issuer_fingerprint(signer.public().fingerprint())? // GnuPG up to (and including) 2.2.8 requires the // Issuer subpacket to be present. |