mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
* gpgsm.texi (Configuration Options): Add --log-file.
* gpgconf-comp.c: Made the entries fro GROUPs translatable. Include i18n.h. (my_dgettext): Hack to use the gnupg2 domain.
This commit is contained in:
parent
c0fa36d405
commit
e4ce12abd1
@ -1,5 +1,7 @@
|
|||||||
2004-09-29 Werner Koch <wk@g10code.com>
|
2004-09-29 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* gpgsm.texi (Configuration Options): Add --log-file.
|
||||||
|
|
||||||
* gpg-agent.texi (Invoking GPG-AGENT): Add a few words about the
|
* gpg-agent.texi (Invoking GPG-AGENT): Add a few words about the
|
||||||
expected pinentry filename.
|
expected pinentry filename.
|
||||||
|
|
||||||
|
@ -266,7 +266,9 @@ a running dirmngr can't be connected.
|
|||||||
@opindex no-secmem-warning
|
@opindex no-secmem-warning
|
||||||
Don't print a warning when the so called "secure memory" can't be used.
|
Don't print a warning when the so called "secure memory" can't be used.
|
||||||
|
|
||||||
|
@item --log-file @var{file}
|
||||||
|
@opindex log-file
|
||||||
|
When running in server mode, append all logging output to @var{file}.
|
||||||
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2004-09-29 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* gpgconf-comp.c: Made the entries fro GROUPs translatable.
|
||||||
|
Include i18n.h.
|
||||||
|
(my_dgettext): Hack to use the gnupg2 domain.
|
||||||
|
|
||||||
2004-08-09 Moritz Schulte <moritz@g10code.com>
|
2004-08-09 Moritz Schulte <moritz@g10code.com>
|
||||||
|
|
||||||
* gpgsm-gencert.sh: New file.
|
* gpgsm-gencert.sh: New file.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# !/bin/sh -*- sh -*-
|
#!/bin/sh
|
||||||
# Add a new .gnupg home directory for a list of users
|
# Add a new .gnupg home directory for a list of users -*- sh -*-
|
||||||
#
|
#
|
||||||
# Copyright 2004 Free Software Foundation, Inc.
|
# Copyright 2004 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
/* FIXME use gettext.h */
|
|
||||||
#include <libintl.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -37,9 +35,11 @@
|
|||||||
/* For log_logv(), asctimestamp(), gnupg_get_time (). */
|
/* For log_logv(), asctimestamp(), gnupg_get_time (). */
|
||||||
#define JNLIB_NEED_LOG_LOGV
|
#define JNLIB_NEED_LOG_LOGV
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
#include "i18n.h"
|
||||||
|
|
||||||
#include "gpgconf.h"
|
#include "gpgconf.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* TODO:
|
/* TODO:
|
||||||
Components: Add more components and their options.
|
Components: Add more components and their options.
|
||||||
@ -361,12 +361,19 @@ struct gc_option
|
|||||||
|
|
||||||
/* A gettext domain in which the following description can be found.
|
/* A gettext domain in which the following description can be found.
|
||||||
If this is NULL, then DESC is not translated. Valid for groups
|
If this is NULL, then DESC is not translated. Valid for groups
|
||||||
and options. */
|
and options.
|
||||||
|
|
||||||
|
Note that we try to keep the description of groups within the
|
||||||
|
gnupg domain. */
|
||||||
const char *desc_domain;
|
const char *desc_domain;
|
||||||
|
|
||||||
/* A gettext description for this group or option. If it starts
|
/* A gettext description for this group or option. If it starts
|
||||||
with a '|', then the string up to the next '|' describes the
|
with a '|', then the string up to the next '|' describes the
|
||||||
argument, and the description follows the second '|'. */
|
argument, and the description follows the second '|'.
|
||||||
|
|
||||||
|
In general enclosing these description in N_() is not required
|
||||||
|
because the description should be identical to the one in the
|
||||||
|
help menu of the respective program. */
|
||||||
const char *desc;
|
const char *desc;
|
||||||
|
|
||||||
/* The following fields are only valid for options. */
|
/* The following fields are only valid for options. */
|
||||||
@ -422,7 +429,7 @@ static gc_option_t gc_options_gpg_agent[] =
|
|||||||
|
|
||||||
{ "Monitor",
|
{ "Monitor",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the diagnostic output" },
|
"gnupg", N_("Options controlling the diagnostic output") },
|
||||||
{ "verbose", GC_OPT_FLAG_LIST|GC_OPT_FLAG_RUNTIME, GC_LEVEL_BASIC,
|
{ "verbose", GC_OPT_FLAG_LIST|GC_OPT_FLAG_RUNTIME, GC_LEVEL_BASIC,
|
||||||
"gnupg", "verbose",
|
"gnupg", "verbose",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_GPG_AGENT },
|
GC_ARG_TYPE_NONE, GC_BACKEND_GPG_AGENT },
|
||||||
@ -435,14 +442,14 @@ static gc_option_t gc_options_gpg_agent[] =
|
|||||||
|
|
||||||
{ "Configuration",
|
{ "Configuration",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
||||||
NULL, "Options controlling the configuration" },
|
"gnupg", N_("Options controlling the configuration") },
|
||||||
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
||||||
"gnupg", "|FILE|read options from FILE",
|
"gnupg", "|FILE|read options from FILE",
|
||||||
GC_ARG_TYPE_PATHNAME, GC_BACKEND_GPG_AGENT },
|
GC_ARG_TYPE_PATHNAME, GC_BACKEND_GPG_AGENT },
|
||||||
|
|
||||||
{ "Debug",
|
{ "Debug",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
||||||
"gnupg", "Options useful for debugging" },
|
"gnupg", N_("Options useful for debugging") },
|
||||||
{ "debug-level", GC_OPT_FLAG_ARG_OPT|GC_OPT_FLAG_RUNTIME, GC_LEVEL_ADVANCED,
|
{ "debug-level", GC_OPT_FLAG_ARG_OPT|GC_OPT_FLAG_RUNTIME, GC_LEVEL_ADVANCED,
|
||||||
"gnupg", "|LEVEL|set the debugging level to LEVEL",
|
"gnupg", "|LEVEL|set the debugging level to LEVEL",
|
||||||
GC_ARG_TYPE_STRING, GC_BACKEND_GPG_AGENT },
|
GC_ARG_TYPE_STRING, GC_BACKEND_GPG_AGENT },
|
||||||
@ -455,7 +462,7 @@ static gc_option_t gc_options_gpg_agent[] =
|
|||||||
|
|
||||||
{ "Security",
|
{ "Security",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the security" },
|
"gnupg", N_("Options controlling the security") },
|
||||||
{ "default-cache-ttl", GC_OPT_FLAG_RUNTIME, GC_LEVEL_BASIC,
|
{ "default-cache-ttl", GC_OPT_FLAG_RUNTIME, GC_LEVEL_BASIC,
|
||||||
"gnupg", "|N|expire cached PINs after N seconds",
|
"gnupg", "|N|expire cached PINs after N seconds",
|
||||||
GC_ARG_TYPE_UINT32, GC_BACKEND_GPG_AGENT },
|
GC_ARG_TYPE_UINT32, GC_BACKEND_GPG_AGENT },
|
||||||
@ -483,7 +490,7 @@ static gc_option_t gc_options_scdaemon[] =
|
|||||||
|
|
||||||
{ "Monitor",
|
{ "Monitor",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the diagnostic output" },
|
"gnupg", N_("Options controlling the diagnostic output") },
|
||||||
{ "verbose", GC_OPT_FLAG_LIST, GC_LEVEL_BASIC,
|
{ "verbose", GC_OPT_FLAG_LIST, GC_LEVEL_BASIC,
|
||||||
"gnupg", "verbose",
|
"gnupg", "verbose",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_SCDAEMON },
|
GC_ARG_TYPE_NONE, GC_BACKEND_SCDAEMON },
|
||||||
@ -496,7 +503,7 @@ static gc_option_t gc_options_scdaemon[] =
|
|||||||
|
|
||||||
{ "Configuration",
|
{ "Configuration",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
||||||
NULL, "Options controlling the configuration" },
|
"gnupg", N_("Options controlling the configuration") },
|
||||||
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
||||||
"gnupg", "|FILE|read options from FILE",
|
"gnupg", "|FILE|read options from FILE",
|
||||||
GC_ARG_TYPE_PATHNAME, GC_BACKEND_SCDAEMON },
|
GC_ARG_TYPE_PATHNAME, GC_BACKEND_SCDAEMON },
|
||||||
@ -519,7 +526,7 @@ static gc_option_t gc_options_scdaemon[] =
|
|||||||
|
|
||||||
{ "Debug",
|
{ "Debug",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
||||||
"gnupg", "Options useful for debugging" },
|
"gnupg", N_("Options useful for debugging") },
|
||||||
{ "debug-level", GC_OPT_FLAG_ARG_OPT, GC_LEVEL_ADVANCED,
|
{ "debug-level", GC_OPT_FLAG_ARG_OPT, GC_LEVEL_ADVANCED,
|
||||||
"gnupg", "|LEVEL|set the debugging level to LEVEL",
|
"gnupg", "|LEVEL|set the debugging level to LEVEL",
|
||||||
GC_ARG_TYPE_STRING, GC_BACKEND_SCDAEMON },
|
GC_ARG_TYPE_STRING, GC_BACKEND_SCDAEMON },
|
||||||
@ -529,7 +536,7 @@ static gc_option_t gc_options_scdaemon[] =
|
|||||||
|
|
||||||
{ "Security",
|
{ "Security",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the security" },
|
"gnupg", N_("Options controlling the security") },
|
||||||
{ "allow-admin", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
{ "allow-admin", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
||||||
"gnupg", "allow the use of admin card commands",
|
"gnupg", "allow the use of admin card commands",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_SCDAEMON },
|
GC_ARG_TYPE_NONE, GC_BACKEND_SCDAEMON },
|
||||||
@ -548,7 +555,7 @@ static gc_option_t gc_options_gpg[] =
|
|||||||
|
|
||||||
{ "Monitor",
|
{ "Monitor",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the diagnostic output" },
|
"gnupg", N_("Options controlling the diagnostic output") },
|
||||||
{ "verbose", GC_OPT_FLAG_LIST, GC_LEVEL_BASIC,
|
{ "verbose", GC_OPT_FLAG_LIST, GC_LEVEL_BASIC,
|
||||||
"gnupg", "verbose",
|
"gnupg", "verbose",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_GPG },
|
GC_ARG_TYPE_NONE, GC_BACKEND_GPG },
|
||||||
@ -561,14 +568,14 @@ static gc_option_t gc_options_gpg[] =
|
|||||||
|
|
||||||
{ "Configuration",
|
{ "Configuration",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
||||||
NULL, "Options controlling the configuration" },
|
"gnupg", N_("Options controlling the configuration") },
|
||||||
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
||||||
"gnupg", "|FILE|read options from FILE",
|
"gnupg", "|FILE|read options from FILE",
|
||||||
GC_ARG_TYPE_PATHNAME, GC_BACKEND_GPG },
|
GC_ARG_TYPE_PATHNAME, GC_BACKEND_GPG },
|
||||||
|
|
||||||
{ "Debug",
|
{ "Debug",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
||||||
"gnupg", "Options useful for debugging" },
|
"gnupg", N_("Options useful for debugging") },
|
||||||
{ "debug-level", GC_OPT_FLAG_ARG_OPT, GC_LEVEL_ADVANCED,
|
{ "debug-level", GC_OPT_FLAG_ARG_OPT, GC_LEVEL_ADVANCED,
|
||||||
"gnupg", "|LEVEL|set the debugging level to LEVEL",
|
"gnupg", "|LEVEL|set the debugging level to LEVEL",
|
||||||
GC_ARG_TYPE_STRING, GC_BACKEND_GPG },
|
GC_ARG_TYPE_STRING, GC_BACKEND_GPG },
|
||||||
@ -581,7 +588,7 @@ static gc_option_t gc_options_gpg[] =
|
|||||||
|
|
||||||
{ "Keyserver",
|
{ "Keyserver",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Configuration for Keyservers" },
|
"gnupg", N_("Configuration for Keyservers") },
|
||||||
{ "keyserver", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
{ "keyserver", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
||||||
"gnupg", "|URL|use keyserver at URL",
|
"gnupg", "|URL|use keyserver at URL",
|
||||||
GC_ARG_TYPE_STRING, GC_BACKEND_GPG },
|
GC_ARG_TYPE_STRING, GC_BACKEND_GPG },
|
||||||
@ -601,7 +608,7 @@ static gc_option_t gc_options_gpgsm[] =
|
|||||||
|
|
||||||
{ "Monitor",
|
{ "Monitor",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the diagnostic output" },
|
"gnupg", N_("Options controlling the diagnostic output") },
|
||||||
{ "verbose", GC_OPT_FLAG_LIST, GC_LEVEL_BASIC,
|
{ "verbose", GC_OPT_FLAG_LIST, GC_LEVEL_BASIC,
|
||||||
"gnupg", "verbose",
|
"gnupg", "verbose",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_GPGSM },
|
GC_ARG_TYPE_NONE, GC_BACKEND_GPGSM },
|
||||||
@ -614,14 +621,14 @@ static gc_option_t gc_options_gpgsm[] =
|
|||||||
|
|
||||||
{ "Configuration",
|
{ "Configuration",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
||||||
NULL, "Options controlling the configuration" },
|
"gnupg", N_("Options controlling the configuration") },
|
||||||
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
||||||
"gnupg", "|FILE|read options from FILE",
|
"gnupg", "|FILE|read options from FILE",
|
||||||
GC_ARG_TYPE_PATHNAME, GC_BACKEND_GPGSM },
|
GC_ARG_TYPE_PATHNAME, GC_BACKEND_GPGSM },
|
||||||
|
|
||||||
{ "Debug",
|
{ "Debug",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
||||||
"gnupg", "Options useful for debugging" },
|
"gnupg", N_("Options useful for debugging") },
|
||||||
{ "debug-level", GC_OPT_FLAG_ARG_OPT, GC_LEVEL_ADVANCED,
|
{ "debug-level", GC_OPT_FLAG_ARG_OPT, GC_LEVEL_ADVANCED,
|
||||||
"gnupg", "|LEVEL|set the debugging level to LEVEL",
|
"gnupg", "|LEVEL|set the debugging level to LEVEL",
|
||||||
GC_ARG_TYPE_STRING, GC_BACKEND_GPGSM },
|
GC_ARG_TYPE_STRING, GC_BACKEND_GPGSM },
|
||||||
@ -634,7 +641,7 @@ static gc_option_t gc_options_gpgsm[] =
|
|||||||
|
|
||||||
{ "Security",
|
{ "Security",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the security" },
|
"gnupg", N_("Options controlling the security") },
|
||||||
{ "disable-crl-checks", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
{ "disable-crl-checks", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
||||||
"gnupg", "never consult a CRL",
|
"gnupg", "never consult a CRL",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_GPGSM },
|
GC_ARG_TYPE_NONE, GC_BACKEND_GPGSM },
|
||||||
@ -664,7 +671,7 @@ static gc_option_t gc_options_dirmngr[] =
|
|||||||
|
|
||||||
{ "Monitor",
|
{ "Monitor",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the diagnostic output" },
|
"gnupg", N_("Options controlling the diagnostic output") },
|
||||||
{ "verbose", GC_OPT_FLAG_LIST, GC_LEVEL_BASIC,
|
{ "verbose", GC_OPT_FLAG_LIST, GC_LEVEL_BASIC,
|
||||||
"dirmngr", "verbose",
|
"dirmngr", "verbose",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
||||||
@ -677,7 +684,7 @@ static gc_option_t gc_options_dirmngr[] =
|
|||||||
|
|
||||||
{ "Format",
|
{ "Format",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the format of the output" },
|
"gnupg", N_("Options controlling the format of the output") },
|
||||||
{ "sh", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
{ "sh", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
||||||
"dirmngr", "sh-style command output",
|
"dirmngr", "sh-style command output",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
||||||
@ -687,14 +694,14 @@ static gc_option_t gc_options_dirmngr[] =
|
|||||||
|
|
||||||
{ "Configuration",
|
{ "Configuration",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_EXPERT,
|
||||||
NULL, "Options controlling the configuration" },
|
"gnupg", N_("Options controlling the configuration") },
|
||||||
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
{ "options", GC_OPT_FLAG_NONE, GC_LEVEL_EXPERT,
|
||||||
"dirmngr", "|FILE|read options from FILE",
|
"dirmngr", "|FILE|read options from FILE",
|
||||||
GC_ARG_TYPE_PATHNAME, GC_BACKEND_DIRMNGR },
|
GC_ARG_TYPE_PATHNAME, GC_BACKEND_DIRMNGR },
|
||||||
|
|
||||||
{ "Debug",
|
{ "Debug",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
||||||
"dirmngr", "Options useful for debugging" },
|
"gnupg", N_("Options useful for debugging") },
|
||||||
{ "debug-level", GC_OPT_FLAG_ARG_OPT, GC_LEVEL_ADVANCED,
|
{ "debug-level", GC_OPT_FLAG_ARG_OPT, GC_LEVEL_ADVANCED,
|
||||||
"dirmngr", "|LEVEL|set the debugging level to LEVEL",
|
"dirmngr", "|LEVEL|set the debugging level to LEVEL",
|
||||||
GC_ARG_TYPE_STRING, GC_BACKEND_DIRMNGR },
|
GC_ARG_TYPE_STRING, GC_BACKEND_DIRMNGR },
|
||||||
@ -713,7 +720,7 @@ static gc_option_t gc_options_dirmngr[] =
|
|||||||
|
|
||||||
{ "Enforcement",
|
{ "Enforcement",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Options controlling the interactivity and enforcement" },
|
"gnupg", N_("Options controlling the interactivity and enforcement") },
|
||||||
{ "batch", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
{ "batch", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
||||||
"dirmngr", "run without asking a user",
|
"dirmngr", "run without asking a user",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
||||||
@ -723,7 +730,7 @@ static gc_option_t gc_options_dirmngr[] =
|
|||||||
|
|
||||||
{ "LDAP",
|
{ "LDAP",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_BASIC,
|
||||||
NULL, "Configuration of LDAP servers to use" },
|
"gnupg", N_("Configuration of LDAP servers to use") },
|
||||||
{ "add-servers", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
{ "add-servers", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
||||||
"dirmngr", "add new servers discovered in CRL distribution points"
|
"dirmngr", "add new servers discovered in CRL distribution points"
|
||||||
" to serverlist", GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
" to serverlist", GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
||||||
@ -748,7 +755,7 @@ static gc_option_t gc_options_dirmngr[] =
|
|||||||
|
|
||||||
{ "OCSP",
|
{ "OCSP",
|
||||||
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
GC_OPT_FLAG_GROUP, GC_LEVEL_ADVANCED,
|
||||||
NULL, "Configuration for OCSP" },
|
"gnupg", N_("Configuration for OCSP") },
|
||||||
{ "allow-ocsp", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
{ "allow-ocsp", GC_OPT_FLAG_NONE, GC_LEVEL_BASIC,
|
||||||
"dirmngr", "allow sending OCSP requests",
|
"dirmngr", "allow sending OCSP requests",
|
||||||
GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
GC_ARG_TYPE_NONE, GC_BACKEND_DIRMNGR },
|
||||||
@ -850,8 +857,8 @@ gpg_agent_runtime_change (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* More or less Robust version of dgettext. It has the sidefeect of
|
/* More or less Robust version of dgettext. It has the side effect of
|
||||||
switching the codeset to utf-8 becuase this is what we want to
|
switching the codeset to utf-8 because this is what we want to
|
||||||
output. In theory it is posible to keep the orginal code set and
|
output. In theory it is posible to keep the orginal code set and
|
||||||
switch back for regular disgnostic output (redefine "_(" for that)
|
switch back for regular disgnostic output (redefine "_(" for that)
|
||||||
but given the natur of this tool, being something invoked from
|
but given the natur of this tool, being something invoked from
|
||||||
@ -870,6 +877,13 @@ my_dgettext (const char *domain, const char *msgid)
|
|||||||
bind_textdomain_codeset (PACKAGE_GT, "utf-8");
|
bind_textdomain_codeset (PACKAGE_GT, "utf-8");
|
||||||
switched_codeset = 1;
|
switched_codeset = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Note: This is a hack to actually use the gnupg2 domain as
|
||||||
|
long we are in a transition phase where gnupg 1.x and 1.9 may
|
||||||
|
coexist. */
|
||||||
|
if (!strcmp (domain, "gnupg"))
|
||||||
|
domain = PACKAGE_GT;
|
||||||
|
|
||||||
text = dgettext (domain, msgid);
|
text = dgettext (domain, msgid);
|
||||||
return text ? text : msgid;
|
return text ? text : msgid;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user