aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-08-28 17:48:13 +0000
committerWerner Koch <[email protected]>2007-08-28 17:48:13 +0000
commitf268889b8ffcd341353210ee141d4c6ded17ef86 (patch)
tree1757a6ce830b6dd9e2a9d914987e715e7289a920 /agent/command.c
parentImplemented more gpg-agen options to support certain passphrase policies. (diff)
downloadgnupg-f268889b8ffcd341353210ee141d4c6ded17ef86.tar.gz
gnupg-f268889b8ffcd341353210ee141d4c6ded17ef86.zip
Add more passphrase policy rules.
(--max-passphrase-days).
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/command.c b/agent/command.c
index 56492e107..bb3d52fbb 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1039,6 +1039,7 @@ cmd_passwd (assuan_context_t ctx, char *line)
if (rc)
goto leave;
+ ctrl->in_passwd++;
rc = agent_key_from_file (ctrl, ctrl->server_local->keydesc,
grip, &shadow_info, CACHE_MODE_IGNORE, &s_skey);
if (rc)
@@ -1050,6 +1051,7 @@ cmd_passwd (assuan_context_t ctx, char *line)
}
else
rc = agent_protect_and_store (ctrl, s_skey);
+ ctrl->in_passwd--;
xfree (ctrl->server_local->keydesc);
ctrl->server_local->keydesc = NULL;