Home GnuPG
Diffusion GnuPG 02ab4b0085f8

dirmngr: Add debug code to http.c.
02ab4b0085f8Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Jan 11 2017, 10:34 AM
Parents
rG088d71d3671e: common: New function log_debug_with_string.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG02ab4b0085f8: dirmngr: Add debug code to http.c. (authored by Werner Koch <wk@gnupg.org>).Jan 11 2017, 10:42 AM