mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
sm/
* gpgsm.c: New option --faked-system-time * sign.c (gpgsm_sign): And use it here. * certpath.c (gpgsm_validate_path): Ditto. common/ * gettime.c: New. agent/ * cache.c (housekeeping, agent_put_cache): Use our time() wrapper. / * doc/: New * configure.ac, Makefile.am: Added doc/
This commit is contained in:
parent
11d568a62f
commit
c7ceb874c2
11 changed files with 132 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-05-14 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* cache.c (housekeeping, agent_put_cache): Use our time() wrapper.
|
||||
|
||||
2002-04-26 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* cache.c (agent_put_cache): Reinitialize the creation time and
|
||||
|
|
|
@ -82,7 +82,7 @@ static void
|
|||
housekeeping (void)
|
||||
{
|
||||
ITEM r, rprev;
|
||||
time_t current = time (NULL);
|
||||
time_t current = gnupg_get_time ();
|
||||
|
||||
/* first expire the actual data */
|
||||
for (r=thecache; r; r = r->next)
|
||||
|
@ -170,7 +170,7 @@ agent_put_cache (const char *key, const char *data, int ttl)
|
|||
}
|
||||
if (data)
|
||||
{
|
||||
r->created = r->accessed = time (NULL);
|
||||
r->created = r->accessed = gnupg_get_time ();
|
||||
r->ttl = ttl;
|
||||
r->pw = new_data (data, strlen (data)+1);
|
||||
if (!r->pw)
|
||||
|
@ -185,7 +185,7 @@ agent_put_cache (const char *key, const char *data, int ttl)
|
|||
else
|
||||
{
|
||||
strcpy (r->key, key);
|
||||
r->created = r->accessed = time (NULL);
|
||||
r->created = r->accessed = gnupg_get_time ();
|
||||
r->ttl = ttl;
|
||||
r->pw = new_data (data, strlen (data)+1);
|
||||
if (!r->pw)
|
||||
|
@ -223,7 +223,7 @@ agent_get_cache (const char *key)
|
|||
{
|
||||
/* put_cache does only put strings into the cache, so we
|
||||
don't need the lengths */
|
||||
r->accessed = time (NULL);
|
||||
r->accessed = gnupg_get_time ();
|
||||
if (DBG_CACHE)
|
||||
log_debug ("... hit\n");
|
||||
return r->pw->data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue