summaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-12-01 08:09:48 +0000
committerNick Mathewson <nickm@torproject.org>2007-12-01 08:09:48 +0000
commitd8ad247dfdea0705de2990af68026cdf6da22430 (patch)
tree91be989c484e6ae0857cfe08f4e295a919921771 /src/common/tortls.h
parent1789f94668f8da029d18efb51bc3d0652488f706 (diff)
downloadtor-d8ad247dfdea0705de2990af68026cdf6da22430.tar.gz
tor-d8ad247dfdea0705de2990af68026cdf6da22430.zip
r15088@tombo: nickm | 2007-11-30 23:47:29 -0500
Add support to get a callback invoked when the client renegotiate a connection. Also, make clients renegotiate. (not enabled yet, until they detect that the server acted like a v2 server) svn:r12623
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index c8155de2f8..fe18f3787d 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -52,6 +52,9 @@ void tor_tls_free_all(void);
int tor_tls_context_new(crypto_pk_env_t *rsa,
const char *nickname, unsigned int key_lifetime);
tor_tls_t *tor_tls_new(int sock, int is_server);
+void tor_tls_set_renegotiate_callback(tor_tls_t *tls,
+ void (*cb)(tor_tls_t *, void *arg),
+ void *arg);
int tor_tls_is_server(tor_tls_t *tls);
void tor_tls_free(tor_tls_t *tls);
int tor_tls_peer_has_cert(tor_tls_t *tls);