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). --- tools/gpgconf-comp.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/gpgconf-comp.c') 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 }; -- cgit