mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpgconf: Support reading global options (part 2).
* tools/gpgconf-comp.c: Remove all regular option descriptions. They are now read in from the component. Also remove a few meanwhile obsolete options. * agent/gpg-agent.c: Add option description which were only set in gpgconf-comp.c. * dirmngr/dirmngr.c: Ditto. * scd/scdaemon.c: Ditto. * sm/gpgsm.c: Ditto. * g10/gpg.c: Ditto. -- This second part removes all regular option descriptions because they can be read from the components. A few were missing in the components and thus moved to there. Signed-off-by: Werner Koch <wk@gnupg.org> This is a backport from master (2.3).
This commit is contained in:
parent
7397872445
commit
5f890f417f
6 changed files with 150 additions and 144 deletions
|
@ -189,14 +189,18 @@ static ARGPARSE_OPTS opts[] = {
|
|||
/* FIXME: Add the below string for 2.3 */
|
||||
/* N_("let PIN-Entry grab keyboard and mouse")), */
|
||||
ARGPARSE_s_n (oNoGrab, "no-grab", "@"),
|
||||
ARGPARSE_s_s (oLogFile, "log-file", N_("use a log file for the server")),
|
||||
ARGPARSE_s_s (oLogFile, "log-file",
|
||||
/* */ N_("|FILE|write server mode logs to FILE")),
|
||||
|
||||
ARGPARSE_s_s (oPinentryProgram, "pinentry-program",
|
||||
/* */ N_("|PGM|use PGM as the PIN-Entry program")),
|
||||
ARGPARSE_s_s (oPinentryTouchFile, "pinentry-touch-file", "@"),
|
||||
ARGPARSE_s_s (oPinentryInvisibleChar, "pinentry-invisible-char", "@"),
|
||||
ARGPARSE_s_u (oPinentryTimeout, "pinentry-timeout", "@"),
|
||||
ARGPARSE_s_u (oPinentryTimeout, "pinentry-timeout",
|
||||
N_("|N|set the Pinentry timeout to N seconds")),
|
||||
ARGPARSE_s_n (oPinentryFormattedPassphrase, "pinentry-formatted-passphrase",
|
||||
"@"),
|
||||
|
||||
ARGPARSE_s_s (oScdaemonProgram, "scdaemon-program",
|
||||
/* */ N_("|PGM|use PGM as the SCdaemon program") ),
|
||||
ARGPARSE_s_n (oDisableScdaemon, "disable-scdaemon",
|
||||
|
@ -226,19 +230,27 @@ static ARGPARSE_OPTS opts[] = {
|
|||
|
||||
ARGPARSE_s_u (oDefCacheTTL, "default-cache-ttl",
|
||||
N_("|N|expire cached PINs after N seconds")),
|
||||
ARGPARSE_s_u (oDefCacheTTLSSH, "default-cache-ttl-ssh", "@" ),
|
||||
ARGPARSE_s_u (oMaxCacheTTL, "max-cache-ttl", "@" ),
|
||||
ARGPARSE_s_u (oMaxCacheTTLSSH, "max-cache-ttl-ssh", "@" ),
|
||||
|
||||
ARGPARSE_s_u (oDefCacheTTLSSH, "default-cache-ttl-ssh",
|
||||
/* */ N_("|N|expire SSH keys after N seconds")),
|
||||
ARGPARSE_s_u (oMaxCacheTTL, "max-cache-ttl",
|
||||
/* */ N_("|N|set maximum PIN cache lifetime to N seconds")),
|
||||
ARGPARSE_s_u (oMaxCacheTTLSSH, "max-cache-ttl-ssh",
|
||||
/* */ N_("|N|set maximum SSH key lifetime to N seconds")),
|
||||
ARGPARSE_s_n (oEnforcePassphraseConstraints, "enforce-passphrase-constraints",
|
||||
/* */ "@"),
|
||||
ARGPARSE_s_u (oMinPassphraseLen, "min-passphrase-len", "@"),
|
||||
ARGPARSE_s_u (oMinPassphraseNonalpha, "min-passphrase-nonalpha", "@"),
|
||||
ARGPARSE_s_s (oCheckPassphrasePattern, "check-passphrase-pattern", "@"),
|
||||
/* */ N_("do not allow bypassing the passphrase policy")),
|
||||
ARGPARSE_s_u (oMinPassphraseLen, "min-passphrase-len",
|
||||
N_("|N|set minimal required length for new passphrases to N")),
|
||||
ARGPARSE_s_u (oMinPassphraseNonalpha, "min-passphrase-nonalpha",
|
||||
N_("|N|require at least N non-alpha"
|
||||
" characters for a new passphrase")),
|
||||
ARGPARSE_s_s (oCheckPassphrasePattern, "check-passphrase-pattern",
|
||||
N_("|FILE|check new passphrases against pattern in FILE")),
|
||||
ARGPARSE_s_s (oCheckSymPassphrasePattern, "check-sym-passphrase-pattern",
|
||||
"@"),
|
||||
ARGPARSE_s_u (oMaxPassphraseDays, "max-passphrase-days", "@"),
|
||||
ARGPARSE_s_n (oEnablePassphraseHistory, "enable-passphrase-history", "@"),
|
||||
ARGPARSE_s_u (oMaxPassphraseDays, "max-passphrase-days",
|
||||
N_("|N|expire the passphrase after N days")),
|
||||
ARGPARSE_s_n (oEnablePassphraseHistory, "enable-passphrase-history",
|
||||
N_("do not allow the reuse of old passphrases")),
|
||||
|
||||
ARGPARSE_s_n (oIgnoreCacheForSigning, "ignore-cache-for-signing",
|
||||
/* */ N_("do not use the PIN cache when signing")),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue