summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf-comp.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-08-28 19:48:13 +0200
committerWerner Koch <wk@gnupg.org>2007-08-28 19:48:13 +0200
commitf268889b8ffcd341353210ee141d4c6ded17ef86 (patch)
tree1757a6ce830b6dd9e2a9d914987e715e7289a920 /tools/gpgconf-comp.c
parentImplemented more gpg-agen options to support certain passphrase policies. (diff)
downloadgnupg2-f268889b8ffcd341353210ee141d4c6ded17ef86.tar.xz
gnupg2-f268889b8ffcd341353210ee141d4c6ded17ef86.zip
Add more passphrase policy rules.
(--max-passphrase-days).
Diffstat (limited to '')
-rw-r--r--tools/gpgconf-comp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index 466da32bd..e2c03d4f8 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -528,6 +528,14 @@ static gc_option_t gc_options_gpg_agent[] =
GC_LEVEL_EXPERT,
"gnupg", N_("|FILE|check new passphrases against pattern in FILE"),
GC_ARG_TYPE_PATHNAME, GC_BACKEND_SCDAEMON },
+ { "max-passphrase-days", GC_OPT_FLAG_RUNTIME,
+ GC_LEVEL_EXPERT, "gnupg",
+ N_("|N|expire the passphrase after N days"),
+ GC_ARG_TYPE_UINT32, GC_BACKEND_GPG_AGENT },
+ { "enable-passphrases-history", GC_OPT_FLAG_RUNTIME,
+ GC_LEVEL_EXPERT, "gnupg",
+ N_("do not allow the reuse of old passphrases"),
+ GC_ARG_TYPE_NONE, GC_BACKEND_GPG_AGENT },
GC_OPTION_NULL
};