1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-23 01:22:45 +02: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:
Werner Koch 2019-07-18 13:59:52 +02:00
parent 44be675b75
commit 824ca6f042
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 2 additions and 2 deletions

View File

@ -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);