mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
kbx: Allow fd-passing for the keyboxd.
* kbx/kbxserver.c: Include host2net.h (struct server_local_s): Add field outstream. (prepare_outstream): New. (kbxd_writen): New. (kbxd_write_data_line): Write to file descrptor. Disable the slow human reader friendly data line formatting. (cmd_search, cmd_next): Disable data logging. (kbxd_start_command_handler): Add OUTPUT command. * kbx/keyboxd.c (main): Enable log monitor. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
2f0fdab8aa
commit
6c327b4dd6
2 changed files with 109 additions and 6 deletions
|
@ -58,6 +58,12 @@
|
|||
#include "../common/exechelp.h"
|
||||
#include "frontend.h"
|
||||
|
||||
|
||||
/* Urrgs: Put this into a separate header - but it needs assuan.h first. */
|
||||
extern int kbxd_assuan_log_monitor (assuan_context_t ctx, unsigned int cat,
|
||||
const char *msg);
|
||||
|
||||
|
||||
enum cmd_and_opt_values
|
||||
{
|
||||
aNull = 0,
|
||||
|
@ -488,7 +494,7 @@ main (int argc, char **argv )
|
|||
assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT);
|
||||
assuan_sock_init ();
|
||||
assuan_sock_set_system_hooks (ASSUAN_SYSTEM_NPTH);
|
||||
setup_libassuan_logging (&opt.debug, NULL);
|
||||
setup_libassuan_logging (&opt.debug, kbxd_assuan_log_monitor);
|
||||
|
||||
setup_libgcrypt_logging ();
|
||||
gcry_set_progress_handler (kbxd_libgcrypt_progress_cb, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue