aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-05-19 07:47:18 +0000
committerWerner Koch <[email protected]>2014-05-19 07:47:18 +0000
commit45f15b2d767d4068f79fd5b123e9eeae08a0616d (patch)
tree458094074eb11876fbc1e7c8d55f0866ddf09d2b /common/http.h
parentkeyserver: Improve support for hkps pools. (diff)
downloadgnupg-45f15b2d767d4068f79fd5b123e9eeae08a0616d.tar.gz
gnupg-45f15b2d767d4068f79fd5b123e9eeae08a0616d.zip
http: Add callback to help logging of server certificates.
* common/http.c (http_session_s): Add field cert_log_cb. (http_session_set_log_cb): New. (http_verify_server_credentials): Call callback.
Diffstat (limited to 'common/http.h')
-rw-r--r--common/http.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/http.h b/common/http.h
index acfdc0fe6..416e22065 100644
--- a/common/http.h
+++ b/common/http.h
@@ -98,6 +98,11 @@ gpg_error_t http_session_new (http_session_t *r_session,
http_session_t http_session_ref (http_session_t sess);
void http_session_release (http_session_t sess);
+void http_session_set_log_cb (http_session_t sess,
+ void (*cb)(http_session_t, gpg_error_t,
+ const char *,
+ const void **, size_t *));
+
gpg_error_t http_parse_uri (parsed_uri_t *ret_uri, const char *uri,
int no_scheme_check);