gnupg/agent
James Bottomley f541e1d95a
agent: separate out daemon handling infrastructure for reuse
* agent/call-scd.c: Factor re-usable code out to ...
* agent/call-daemon.c: new.  Store infos in an array to allow for
other backend daemons.
* agent/Makefile.am (gpg_agent_SOURCES): Add new file.
* agent/agent.h: Include assuan.h.
(enum daemon_type): New.
(opt): Replace scdaemon_program by daemon_program array.  Replace
scd_local by a array d_local.  Change users accordingly.
--

The model I'm using for a TPM daemon is the current scdaemon.  That
includes start and stop handlers plus liveness checks and an assuan
socket generator.  To avoid massive code duplication (and save me a
lot of effort), I've elected to strip this code out of call-scd.c into
a generic framework which can then be reused as is by the TPM handling
daemon.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Co-authored-by: Werner Koch <wk@gnupg.org>

Modified original patch for 2.2 heavily to fit the new framework used
in master (gnupg 2.3)

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-06-24 12:44:02 +02:00
..
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
Makefile.am agent: separate out daemon handling infrastructure for reuse 2020-06-24 12:44:02 +02:00
agent.h agent: separate out daemon handling infrastructure for reuse 2020-06-24 12:44:02 +02: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-daemon.c agent: separate out daemon handling infrastructure for reuse 2020-06-24 12:44:02 +02:00
call-pinentry.c agent: Improve --debug-pinentry diagnostics 2019-11-25 11:39:56 +01:00
call-scd.c agent: separate out daemon handling infrastructure for reuse 2020-06-24 12:44:02 +02:00
command-ssh.c agent: separate out daemon handling infrastructure for reuse 2020-06-24 12:44:02 +02:00
command.c agent: separate out daemon handling infrastructure for reuse 2020-06-24 12:44:02 +02:00
cvt-openpgp.c agent: For ECC, use opaque MPI for key representation. 2020-06-05 10:09:05 +09: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 to use SETHASH for arbitrary data. 2020-05-18 19:24:41 +02:00
findkey.c agent: expose shadow key type 2020-06-24 10:11:47 +02: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 agent: separate out daemon handling infrastructure for reuse 2020-06-24 12:44:02 +02: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
pkdecrypt.c agent: Support scdaemon operation using KEYGRIP. 2019-05-15 17:13:32 +09:00
pksign.c gpg,agent: Support Ed448 signing. 2020-06-24 10:05:03 +09:00
preset-passphrase.c Use gpgrt's new option parser for the tools. 2020-02-21 20:28:47 +01:00
protect-tool.c agent,ecc: Use of opaque MPI for ECC, fixup 'd'. 2020-06-05 10:35:33 +09:00
protect.c agent: expose shadow key type 2020-06-24 10:11:47 +02:00
sexp-secret.c gpg,agent: Support Ed448 signing. 2020-06-24 10:05:03 +09: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