diff options
author | Werner Koch <wk@gnupg.org> | 2017-02-23 20:14:16 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-02-23 20:14:16 +0100 |
commit | 22b69b9edfdf6e6172239cbd1075ffe29077d339 (patch) | |
tree | 65dc116408aecb6965f70dc79fba216b16e5ab46 /dirmngr/http.c | |
parent | wks: Make sure that the draft 2 request is correctly detected. (diff) | |
download | gnupg2-22b69b9edfdf6e6172239cbd1075ffe29077d339.tar.xz gnupg2-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 <wk@gnupg.org>
Diffstat (limited to 'dirmngr/http.c')
-rw-r--r-- | dirmngr/http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c index e5e36b23f..890f5f6a2 100644 --- a/dirmngr/http.c +++ b/dirmngr/http.c @@ -382,7 +382,7 @@ _my_socket_new (int lnr, assuan_fd_t fd) so->refcount = 1; if (opt_debug) log_debug ("http.c:%d:socket_new: object %p for fd %d created\n", - lnr, (int)so, so->fd); + lnr, so, so->fd); return so; } #define my_socket_new(a) _my_socket_new (__LINE__, (a)) @@ -394,7 +394,7 @@ _my_socket_ref (int lnr, my_socket_t so) so->refcount++; if (opt_debug > 1) log_debug ("http.c:%d:socket_ref: object %p for fd %d refcount now %d\n", - lnr, (int)so, so->fd, so->refcount); + lnr, so, so->fd, so->refcount); return so; } #define my_socket_ref(a) _my_socket_ref (__LINE__,(a)) @@ -412,7 +412,7 @@ _my_socket_unref (int lnr, my_socket_t so, so->refcount--; if (opt_debug > 1) log_debug ("http.c:%d:socket_unref: object %p for fd %d ref now %d\n", - lnr, (int)so, so->fd, so->refcount); + lnr, so, so->fd, so->refcount); if (!so->refcount) { |