diff options
author | Werner Koch <[email protected]> | 2011-04-12 16:20:46 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-04-12 16:20:46 +0000 |
commit | f8c5395fbd24b9811807d7601e22b38af9f5126c (patch) | |
tree | ae11a3ad0bb041b5b31f115ec91e16c2c0e383ad /agent/agent.h | |
parent | Added PASSWD --preset. (diff) | |
download | gnupg-f8c5395fbd24b9811807d7601e22b38af9f5126c.tar.gz gnupg-f8c5395fbd24b9811807d7601e22b38af9f5126c.zip |
Use macros for the 120 and 900s cache TTLs.
Diffstat (limited to '')
-rw-r--r-- | agent/agent.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h index d5aaec8b7..20a617f78 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -217,6 +217,12 @@ typedef enum } cache_mode_t; +/* The TTL is seconds used for adding a new nonce mode cache item. */ +#define CACHE_TTL_NONCE 120 + +/* The TTL in seconds used by the --preset option of some commands. */ +#define CACHE_TTL_OPT_PRESET 900 + /* The type of a function to lookup a TTL by a keygrip. */ typedef int (*lookup_ttl_t)(const char *hexgrip); |