aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-04-21 13:40:48 +0000
committerWerner Koch <[email protected]>2011-04-21 13:40:48 +0000
commit4caa768f1d3388f36a6de4be9f71d916696b9e2d (patch)
tree059a687105ad2fe2b63aa5cf9205c418f1dd7f27 /agent/agent.h
parent2011-04-20 Marcus Brinkmann <[email protected]> (diff)
downloadgnupg-4caa768f1d3388f36a6de4be9f71d916696b9e2d.tar.gz
gnupg-4caa768f1d3388f36a6de4be9f71d916696b9e2d.zip
Add OPTION:cache-ttl-opt-preset to gpg-agent.
This option may be used to change the default ttl values use with the --preset option of GENKEY and PASSWD.
Diffstat (limited to '')
-rw-r--r--agent/agent.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/agent/agent.h b/agent/agent.h
index 20a617f78..16c9aba56 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -1,5 +1,5 @@
/* agent.h - Global definitions for the agent
- * Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2002, 2003, 2005, 2011 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -164,6 +164,10 @@ struct server_control_s
/* The current pinentry mode. */
pinentry_mode_t pinentry_mode;
+ /* The TTL used for the --preset option of certain commands. */
+ int cache_ttl_opt_preset;
+
+ /* Information on the currently used digest (for signing commands). */
struct {
int algo;
unsigned char value[MAX_DIGEST_LEN];
@@ -220,7 +224,8 @@ 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. */
+/* The TTL in seconds used by the --preset option of some commands.
+ This is the default value changeable by an OPTION command. */
#define CACHE_TTL_OPT_PRESET 900