diff options
author | Werner Koch <[email protected]> | 2017-02-23 19:14:16 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-02-23 19:14:16 +0000 |
commit | 22b69b9edfdf6e6172239cbd1075ffe29077d339 (patch) | |
tree | 65dc116408aecb6965f70dc79fba216b16e5ab46 /dirmngr/dirmngr.c | |
parent | wks: Make sure that the draft 2 request is correctly detected. (diff) | |
download | gnupg-22b69b9edfdf6e6172239cbd1075ffe29077d339.tar.gz gnupg-22b69b9edfdf6e6172239cbd1075ffe29077d339.zip |
dirmngr: Add new debug flag "extprog"
* dirmngr/dirmngr.h (DBG_EXTPROG_VALUE, DBG_EXTPROG): New macros.
* dirmngr/dirmngr.c (debug_flags): Add flag "extprog".
(handle_connections): Use a macro instead of -1 for an invalid socket.
* dirmngr/loadswdb.c (verify_status_cb): Debug the gpgv call.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | dirmngr/dirmngr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index 6b4cbcf2d..c877a9b7d 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -267,6 +267,7 @@ static struct debug_flags_s debug_flags [] = { DBG_DNS_VALUE , "dns" }, { DBG_NETWORK_VALUE, "network" }, { DBG_LOOKUP_VALUE , "lookup" }, + { DBG_EXTPROG_VALUE, "extprog" }, { 77, NULL } /* 77 := Do not exit on "help" or "?". */ }; @@ -2215,7 +2216,7 @@ handle_connections (assuan_fd_t listen_fd) close (my_inotify_fd); #endif /*HAVE_INOTIFY_INIT*/ npth_attr_destroy (&tattr); - if (listen_fd != -1) + if (listen_fd != GNUPG_INVALID_FD) assuan_sock_close (fd); cleanup (); log_info ("%s %s stopped\n", strusage(11), strusage(13)); |