diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-11-17 12:50:46 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-11-18 14:10:55 +0100 |
commit | b56ea7ab07626ff37e14f0c15c6252b7627a6b72 (patch) | |
tree | 595c6a5d11b2db7e9141384a32762052440193ce /openpgp/src/parse/stream.rs | |
parent | 991c759dd710bab903baa32dff8dc1fc18e78e3b (diff) |
openpgp: Use a WASM-friendly SystemTime::now wrapper.
- Fixes #769.
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r-- | openpgp/src/parse/stream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index da21b320..a9a556ca 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -2288,7 +2288,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> { .map(|_| time::Duration::new(0, 0)) .unwrap_or( *crate::packet::signature::subpacket::CLOCK_SKEW_TOLERANCE); - let time = time.unwrap_or_else(time::SystemTime::now); + let time = time.unwrap_or_else(crate::now); let mut ppr = PacketParserBuilder::from_buffered_reader(bio)? .map(mapping) |