diff options
author | Werner Koch <[email protected]> | 2022-08-22 10:01:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-08-22 10:05:02 +0000 |
commit | 203dcc19eb48228c60036691fe87fb37e29369a4 (patch) | |
tree | 03944832ea477df71ad14ed535926355d2e0b43a /common/homedir.c | |
parent | dirmngr: Fix NTBTLS include for test (diff) | |
download | gnupg-203dcc19eb48228c60036691fe87fb37e29369a4.tar.gz gnupg-203dcc19eb48228c60036691fe87fb37e29369a4.zip |
common: New common option no-autostart.
* common/comopt.c (opts): Add "no-autostart".
(parse_comopt): Set it.
* common/comopt.h (comopt): Add no_autostart.
* g10/gpg.c (main): Take care of the new option.
* sm/gpgsm.c (main): Ditto.
* tools/gpg-connect-agent.c (INCLUDED_BY_MAIN_MODULE): Add.
(main): Parse common options and handle new option.
* tools/gpg-card.c (main): Ditto.
(cmd_yubikey): Fix minor error reporting issue.
* common/util.h (GNUPG_MODULE_NAME_CARD): New const.
* common/homedir.c (gnupg_module_name): Support it.
--
Having a global option makes it easier to use disable autostart on a
server which is required to use a remote gpg-agent reliable.
Diffstat (limited to 'common/homedir.c')
-rw-r--r-- | common/homedir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/homedir.c b/common/homedir.c index 260aeb2fa..dd4963c32 100644 --- a/common/homedir.c +++ b/common/homedir.c @@ -1592,6 +1592,9 @@ gnupg_module_name (int which) case GNUPG_MODULE_NAME_GPGCONF: X(bindir, "tools", "gpgconf"); + case GNUPG_MODULE_NAME_CARD: + X(bindir, "tools", "gpg-card"); + default: BUG (); } |