Merge branch 'main' into 'main'
openpgp-card: send all bytes of creation time See merge request openpgp-card/openpgp-card!39
This commit is contained in:
commit
7d74a4bdfb
2 changed files with 2 additions and 7 deletions
|
@ -11,6 +11,7 @@ notice = "warn"
|
||||||
ignore = [
|
ignore = [
|
||||||
# Ignore time issue for now as there is no solution
|
# Ignore time issue for now as there is no solution
|
||||||
"RUSTSEC-2020-0071",
|
"RUSTSEC-2020-0071",
|
||||||
|
"RUSTSEC-2023-0071",
|
||||||
]
|
]
|
||||||
[licenses]
|
[licenses]
|
||||||
unlicensed = "deny"
|
unlicensed = "deny"
|
||||||
|
|
|
@ -1205,13 +1205,7 @@ impl<'a> Transaction<'a> {
|
||||||
log::info!("OpenPgpTransaction: set_creation_time");
|
log::info!("OpenPgpTransaction: set_creation_time");
|
||||||
|
|
||||||
// Timestamp update
|
// Timestamp update
|
||||||
let time_value: Vec<u8> = time
|
let time_value: Vec<u8> = time.get().to_be_bytes().to_vec();
|
||||||
.get()
|
|
||||||
.to_be_bytes()
|
|
||||||
.iter()
|
|
||||||
.skip_while(|&&e| e == 0)
|
|
||||||
.copied()
|
|
||||||
.collect();
|
|
||||||
|
|
||||||
let cmd = commands::put_data(key_type.timestamp_put_tag(), time_value);
|
let cmd = commands::put_data(key_type.timestamp_put_tag(), time_value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue