diff options
author | Werner Koch <wk@gnupg.org> | 2017-02-21 09:12:00 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-02-21 09:13:02 +0100 |
commit | 39c745038181edd097e188434b3f9c971ed3987f (patch) | |
tree | 2b8e2a4c401216bee1f457d19391ed2c04dbbf3c /dirmngr/t-http.c | |
parent | g10: Support primary key generation by keygrip. (diff) | |
download | gnupg2-39c745038181edd097e188434b3f9c971ed3987f.tar.xz gnupg2-39c745038181edd097e188434b3f9c971ed3987f.zip |
dirmngr: Add a magic field to the http structs.
* dirmngr/http.c (HTTP_SESSION_MAGIC): New.
(http_session_s): New field 'magic'.
(HTTP_CONTEXT_MAGIC): New.
(http_context_s): New field 'magic'.
(my_ntbtls_verify_cb): Assert MAGIC.
(fp_onclose_notification): Ditto.
(session_unref): Ditto. Reset MAGIC.
(http_session_new): Set MAGIC.
(http_open): Ditto.
(http_raw_connect): Ditto.
(http_close): Assert MAGIC. Reset MAGIC.
* dirmngr/t-http.c (my_http_tls_verify_cb): MArk HTTP_FLAGS unused.
--
We pass those handles through opaque pointers. The magic numbers will
help to detect wrong use.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr/t-http.c')
-rw-r--r-- | dirmngr/t-http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/t-http.c b/dirmngr/t-http.c index 37b3e5329..c5bec898b 100644 --- a/dirmngr/t-http.c +++ b/dirmngr/t-http.c @@ -134,7 +134,7 @@ my_http_tls_verify_cb (void *opaque, (void)opaque; (void)http; (void)session; - + (void)http_flags; /* Get the peer's certs fron ntbtls. */ for (idx = 0; |