mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
d2d9d4fb60
commit
45f15b2d76
2 changed files with 38 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue