diff options
Diffstat (limited to '')
-rw-r--r-- | agent/command.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/agent/command.c b/agent/command.c index 63f59d408..9533db7c0 100644 --- a/agent/command.c +++ b/agent/command.c @@ -1267,20 +1267,20 @@ cmd_get_passphrase (assuan_context_t ctx, char *line) static const char hlp_clear_passphrase[] = - "CLEAR_PASSPHRASE [--agent] <cache_id>\n" + "CLEAR_PASSPHRASE [--mode=normal] <cache_id>\n" "\n" "may be used to invalidate the cache entry for a passphrase. The\n" "function returns with OK even when there is no cached passphrase.\n" - "The --agent option is used to clear an entry for a cacheid added by\n" - "the agent.\n"; + "The --mode=normal option is used to clear an entry for a cacheid\n" + "added by the agent.\n"; static gpg_error_t cmd_clear_passphrase (assuan_context_t ctx, char *line) { char *cacheid = NULL; char *p; - int opt_agent; + int opt_normal; - opt_agent = has_option (line, "--agent"); + opt_normal = has_option (line, "--mode=normal"); line = skip_options (line); /* parse the stuff */ @@ -1293,8 +1293,8 @@ cmd_clear_passphrase (assuan_context_t ctx, char *line) if (!cacheid || !*cacheid || strlen (cacheid) > 50) return set_error (GPG_ERR_ASS_PARAMETER, "invalid length of cacheID"); - agent_put_cache (cacheid, opt_agent ? CACHE_MODE_NORMAL : CACHE_MODE_USER, - NULL, 0); + agent_put_cache (cacheid, opt_normal ? CACHE_MODE_NORMAL : CACHE_MODE_USER, + NULL, 0); return 0; } |