1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00
gnupg/agent
Werner Koch 451cd1b392
gpgconf: Further simplify the gpgconf option processing.
* common/gc-opt-flags.h (GC_OPT_FLAG_RUNTIME): Move to ...
* tools/gpgconf-comp.c: here.
(known_options_scdaemon): Remove "options".
(known_options_dirmngr): Remove "options".
(known_options_gpgsm): Remove "options".
(known_options_gpg): Remove "options" and "keyserver".
(struct gc_option_s): Rename active t gpgconf_list.
(gc_component_list_options): Do not act upon active.
(option_check_validity): Ditto.
(is_known_option): Make it work correctly for unknown options.
(retrieve_options_from_program): Use renamed flag gpgconf_list only to
detect duplicated items from --gpgconf-list.  Do not set runtime.
Only e set the options if set by --gpgconf-list; never clear them.
* agent/gpg-agent.c: Simplify the --gpgconf-list output.
* dirmngr/dirmngr.c: Ditto.
* g10/gpg.c: Ditto.
* kbx/keyboxd.c: Ditto.
* scd/scdaemon.c: Ditto.
* sm/gpgsm.c: Ditto.
* tests/openpgp/gpgconf.scm: Use "compliance" instead of "keyserver"
for the string arg test.
--

There is no need to read the list of options from the components
unless they convey a default value.  It is better to consult only the
list we have in gpgconf-comp.c to decide on whether an option should
be displayed.   Right, this might mess up thing if a newer gpgconf
version is used with an older component, but we already print warnings
in this case and in general we do not want to support this anymore -
the times of gpg 1.4. and 2.0 are long over now.

GnuPG-bug-id: 4788
Signed-off-by: Werner Koch <wk@gnupg.org>
2020-03-14 19:12:41 +01:00
..
agent.h Spelling cleanup. 2020-02-18 18:07:46 -05:00
all-tests.scm tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
cache.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
call-pinentry.c agent: Improve --debug-pinentry diagnostics 2019-11-25 11:39:56 +01:00
call-scd.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
command-ssh.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
command.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
cvt-openpgp.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
cvt-openpgp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
divert-scd.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
findkey.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
genkey.c agent: Remove unused agent_show_message. 2019-05-28 11:29:25 +09:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c gpgconf: Further simplify the gpgconf option processing. 2020-03-14 19:12:41 +01:00
keyformat.txt agent: Allow the use of "Label:" in a key file. 2019-05-07 11:09:09 +02:00
learncard.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
Makefile.am tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
pkdecrypt.c agent: Support scdaemon operation using KEYGRIP. 2019-05-15 17:13:32 +09:00
pksign.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
preset-passphrase.c Use gpgrt's new option parser for the tools. 2020-02-21 20:28:47 +01:00
protect-tool.c Use gpgrt's new option parser for the tools. 2020-02-21 20:28:47 +01:00
protect.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
t-protect.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:50:47 +01:00
trans.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
trustlist.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
w32main.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00