aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/misc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-11-14 12:42:18 +0000
committerWerner Koch <[email protected]>2017-12-11 10:30:45 +0000
commitf2997adee0455c8c0fa391a853ec1b0c9fc43342 (patch)
tree806bfaca7f4700c446e5963573f1a81c087c8917 /dirmngr/misc.c
parentdirmngr: Limit the number of cached domains for WKD. (diff)
downloadgnupg-f2997adee0455c8c0fa391a853ec1b0c9fc43342.tar.gz
gnupg-f2997adee0455c8c0fa391a853ec1b0c9fc43342.zip
dirmngr: Add a background task framework.
* dirmngr/workqueue.c: New. * dirmngr/Makefile.am (dirmngr_SOURCES): Add new file. * dirmngr/server.c (server_local_s): New field session_id. (cmd_wkd_get): Add a task. (task_check_wkd_support): New stub function. (cmd_getinfo): New sub-commands "session_id" and "workqueue". (start_command_handler): Add arg session_id and store it in SERVER_LOCAL. (dirmngr_status_helpf): New. * dirmngr/dirmngr.h (wqtask_t): New type. * dirmngr/dirmngr.c (main): Pass 0 as session_id to start_command_handler. (start_connection_thread): Introduce a session_id and pass it to start_command_handler. Run post session tasks. (housekeeping_thread): Run global workqueue tasks. -- Signed-off-by: Werner Koch <[email protected]> (cherry picked from commit 96a4fbecd1acf946dcde20bef4752c539dae196b)
Diffstat (limited to 'dirmngr/misc.c')
0 files changed, 0 insertions, 0 deletions