dirmngr: Add debug code to http.c.
authorWerner Koch <wk@gnupg.org>
Wed, 11 Jan 2017 09:34:49 +0000 (10:34 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 11 Jan 2017 09:42:44 +0000 (10:42 +0100)
commit02ab4b0085f8b4cdfe163d25ddd0fc80753d7f4a
tree859d9f21abba58c209913987cd003ab22254baea
parent088d71d3671e74eb088386026f0e439a7e3b5543
dirmngr: Add debug code to http.c.

* dirmngr/http.c (opt_verbose, opt_debug): New vars.
(http_set_verbose): New function.
(_my_socket_new): Add debug output.
(_my_socket_ref, _my_socket_unref, session_unref): Call log_debug if
OPT_DEBUG has ben set to 2 in a debugger.
(http_session_new, http_session_ref): Ditto.
(send_request, http_start_data): Print debug output for the request.
(parse_response): Change to use log_debug_string for the response.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/http.c
dirmngr/http.h