aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/http.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-01-11 09:34:49 +0000
committerWerner Koch <[email protected]>2017-01-11 09:42:44 +0000
commit02ab4b0085f8b4cdfe163d25ddd0fc80753d7f4a (patch)
tree859d9f21abba58c209913987cd003ab22254baea /dirmngr/http.h
parentcommon: New function log_debug_with_string. (diff)
downloadgnupg-02ab4b0085f8b4cdfe163d25ddd0fc80753d7f4a.tar.gz
gnupg-02ab4b0085f8b4cdfe163d25ddd0fc80753d7f4a.zip
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r--dirmngr/http.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dirmngr/http.h b/dirmngr/http.h
index 32556a4e0..0b581fe3c 100644
--- a/dirmngr/http.h
+++ b/dirmngr/http.h
@@ -97,6 +97,8 @@ typedef struct http_session_s *http_session_t;
struct http_context_s;
typedef struct http_context_s *http_t;
+void http_set_verbose (int verbose, int debug);
+
void http_register_tls_callback (gpg_error_t (*cb)(http_t,http_session_t,int));
void http_register_tls_ca (const char *fname);
void http_register_netactivity_cb (void (*cb)(void));