mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-26 01:52:45 +02:00
gpg: New command --list-gcrypt-config.
* g10/gpg.c (aListGcryptConfig): New. (main): Implement command. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
936416690e
commit
2f3de06ff4
10
g10/gpg.c
10
g10/gpg.c
|
@ -109,6 +109,7 @@ enum cmd_and_opt_values
|
||||||
aSignKey,
|
aSignKey,
|
||||||
aLSignKey,
|
aLSignKey,
|
||||||
aListConfig,
|
aListConfig,
|
||||||
|
aListGcryptConfig,
|
||||||
aGPGConfList,
|
aGPGConfList,
|
||||||
aGPGConfTest,
|
aGPGConfTest,
|
||||||
aListPackets,
|
aListPackets,
|
||||||
|
@ -431,6 +432,7 @@ static ARGPARSE_OPTS opts[] = {
|
||||||
ARGPARSE_c (aChangePIN, "change-pin", N_("change a card's PIN")),
|
ARGPARSE_c (aChangePIN, "change-pin", N_("change a card's PIN")),
|
||||||
#endif
|
#endif
|
||||||
ARGPARSE_c (aListConfig, "list-config", "@"),
|
ARGPARSE_c (aListConfig, "list-config", "@"),
|
||||||
|
ARGPARSE_c (aListGcryptConfig, "list-gcrypt-config", "@"),
|
||||||
ARGPARSE_c (aGPGConfList, "gpgconf-list", "@" ),
|
ARGPARSE_c (aGPGConfList, "gpgconf-list", "@" ),
|
||||||
ARGPARSE_c (aGPGConfTest, "gpgconf-test", "@" ),
|
ARGPARSE_c (aGPGConfTest, "gpgconf-test", "@" ),
|
||||||
ARGPARSE_c (aListPackets, "list-packets","@"),
|
ARGPARSE_c (aListPackets, "list-packets","@"),
|
||||||
|
@ -2153,6 +2155,7 @@ main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
case aCheckKeys:
|
case aCheckKeys:
|
||||||
case aListConfig:
|
case aListConfig:
|
||||||
|
case aListGcryptConfig:
|
||||||
case aGPGConfList:
|
case aGPGConfList:
|
||||||
case aGPGConfTest:
|
case aGPGConfTest:
|
||||||
case aListPackets:
|
case aListPackets:
|
||||||
|
@ -4064,6 +4067,13 @@ main (int argc, char **argv)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case aListGcryptConfig:
|
||||||
|
/* Fixme: It would be nice to integrate that with
|
||||||
|
--list-config but unfortunately there is no way yet to have
|
||||||
|
libgcrypt print it to an estream for further parsing. */
|
||||||
|
gcry_control (GCRYCTL_PRINT_CONFIG, stdout);
|
||||||
|
break;
|
||||||
|
|
||||||
case aListPackets:
|
case aListPackets:
|
||||||
opt.list_packets=2;
|
opt.list_packets=2;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user