diff --git a/deny.toml b/deny.toml index 3e7ccc7..2ff949c 100644 --- a/deny.toml +++ b/deny.toml @@ -11,6 +11,7 @@ notice = "warn" ignore = [ # Ignore time issue for now as there is no solution "RUSTSEC-2020-0071", + "RUSTSEC-2023-0071", ] [licenses] unlicensed = "deny" diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index f327aea..e34e86a 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -1205,13 +1205,7 @@ impl<'a> Transaction<'a> { log::info!("OpenPgpTransaction: set_creation_time"); // Timestamp update - let time_value: Vec = time - .get() - .to_be_bytes() - .iter() - .skip_while(|&&e| e == 0) - .copied() - .collect(); + let time_value: Vec = time.get().to_be_bytes().to_vec(); let cmd = commands::put_data(key_type.timestamp_put_tag(), time_value);