mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
kbx: Allow "gpgsm --faked-system-time" to kick off a compression run.
* kbx/keybox-update.c (keybox_compress): Use make_timestamp. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
44be675b75
commit
824ca6f042
@ -1102,7 +1102,7 @@ _keybox_update_header_blob (KEYBOXBLOB blob, int for_openpgp)
|
||||
{
|
||||
u32 val = make_timestamp ();
|
||||
|
||||
/* Update the last maintenance run times tamp. */
|
||||
/* Update the last maintenance run timestamp. */
|
||||
blob->blob[20] = (val >> 24);
|
||||
blob->blob[20+1] = (val >> 16);
|
||||
blob->blob[20+2] = (val >> 8);
|
||||
|
@ -675,7 +675,7 @@ keybox_compress (KEYBOX_HANDLE hd)
|
||||
{
|
||||
u32 last_maint = buf32_to_u32 (buffer+20);
|
||||
|
||||
if ( (last_maint + 3*3600) > time (NULL) )
|
||||
if ( (last_maint + 3*3600) < make_timestamp () )
|
||||
{
|
||||
fclose (fp);
|
||||
_keybox_release_blob (blob);
|
||||
|
Loading…
x
Reference in New Issue
Block a user