From f268889b8ffcd341353210ee141d4c6ded17ef86 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 28 Aug 2007 17:48:13 +0000 Subject: Add more passphrase policy rules. (--max-passphrase-days). --- agent/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'agent/command.c') 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; -- cgit