diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-11-13 14:47:11 +0100 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-11-13 14:47:11 +0100 |
commit | 406ae1ba5ad529a4d0e710229dab6ed645d42b50 (patch) | |
tree | 2bd05b7af82b902151643881f383df4ed6faed67 /src/common/tortls.h | |
parent | e097bffaed72af6b19f7293722021196bb94de1e (diff) | |
download | tor-406ae1ba5ad529a4d0e710229dab6ed645d42b50.tar.gz tor-406ae1ba5ad529a4d0e710229dab6ed645d42b50.zip |
Use callback-driven approach to block renegotiations.
Also use this new approach in the bufferevents-enabled case.
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index 1219b80816..f032acd5d7 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -13,6 +13,7 @@ #include "crypto.h" #include "compat.h" +#include "compat_libevent.h" /* Opaque structure to hold a TLS connection. */ typedef struct tor_tls_t tor_tls_t; @@ -60,8 +61,9 @@ int tor_tls_context_init(int is_public_server, unsigned int key_lifetime); tor_tls_t *tor_tls_new(int sock, int is_server); void tor_tls_set_logged_address(tor_tls_t *tls, const char *address); -void tor_tls_set_renegotiate_callback(tor_tls_t *tls, +void tor_tls_set_renegotiate_callbacks(tor_tls_t *tls, void (*cb)(tor_tls_t *, void *arg), + void (*cb2)(evutil_socket_t, short, void *), void *arg); int tor_tls_is_server(tor_tls_t *tls); void tor_tls_free(tor_tls_t *tls); |