diff options
| author | Werner Koch <[email protected]> | 2016-11-11 16:30:23 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2016-11-11 16:30:23 +0000 |
| commit | 7b04a43c05834b937b32a596f1941e9728add5fa (patch) | |
| tree | 14548d670d86ebaad319cfeaeff5e179bc5fd1ec /dirmngr/http.h | |
| parent | doc: Include config examples for socket-activated user services. (diff) | |
| download | gnupg-7b04a43c05834b937b32a596f1941e9728add5fa.tar.gz gnupg-7b04a43c05834b937b32a596f1941e9728add5fa.zip | |
dirmngr: Prepare to trigger jobs by network activity.
* dirmngr/http.c (netactivity_cb): New.
(http_register_netactivity_cb): New.
(notify_netactivity): New.
(connect_server): Call that function.
* dirmngr/dirmngr.c (main): Call http_register_netactivity_cb.
(netactivity_action): New stub handler.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/http.h')
| -rw-r--r-- | dirmngr/http.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dirmngr/http.h b/dirmngr/http.h index 4a70caf4f..2a36fdaa8 100644 --- a/dirmngr/http.h +++ b/dirmngr/http.h @@ -98,6 +98,8 @@ typedef struct http_context_s *http_t; 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)); + gpg_error_t http_session_new (http_session_t *r_session, const char *tls_priority, |
