diff options
author | Werner Koch <wk@gnupg.org> | 2016-09-05 10:55:10 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-09-05 11:58:48 +0200 |
commit | 0ac671f8a2b65a4b339f615c6420287a549779fa (patch) | |
tree | 97608684b97d7d01da96f6670e2bada91f01f81f /g13 | |
parent | gpg: New export filter drop-subkey. (diff) | |
download | gnupg2-0ac671f8a2b65a4b339f615c6420287a549779fa.tar.xz gnupg2-0ac671f8a2b65a4b339f615c6420287a549779fa.zip |
common: Add an assuan logging monitor.
* common/asshelp.c (my_log_monitor): New var.
(my_libassuan_log_handler): Run that monitor.
(setup_libassuan_logging): Add arg to set a log monitor and change all
callers.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g13')
-rw-r--r-- | g13/g13-syshelp.c | 2 | ||||
-rw-r--r-- | g13/g13.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/g13/g13-syshelp.c b/g13/g13-syshelp.c index 7976be43d..7b4623946 100644 --- a/g13/g13-syshelp.c +++ b/g13/g13-syshelp.c @@ -302,7 +302,7 @@ main ( int argc, char **argv) /* Prepare libassuan. */ assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT); /*assuan_set_system_hooks (ASSUAN_SYSTEM_NPTH);*/ - setup_libassuan_logging (&opt.debug); + setup_libassuan_logging (&opt.debug, NULL); /* Setup a default control structure for command line mode. */ memset (&ctrl, 0, sizeof ctrl); @@ -431,7 +431,7 @@ main ( int argc, char **argv) /* Prepare libassuan. */ assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT); assuan_set_system_hooks (ASSUAN_SYSTEM_NPTH); - setup_libassuan_logging (&opt.debug); + setup_libassuan_logging (&opt.debug, NULL); /* Setup a default control structure for command line mode. */ memset (&ctrl, 0, sizeof ctrl); |