diff options
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index e4b1ad65f2..64ce5c6345 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -64,6 +64,9 @@ int tor_tls_check_lifetime(tor_tls_t *tls, int tolerance); int tor_tls_read(tor_tls_t *tls, char *cp, size_t len); int tor_tls_write(tor_tls_t *tls, const char *cp, size_t n); int tor_tls_handshake(tor_tls_t *tls); +#if defined(USE_BUFFEREVENTS) || defined(TORTLS_PRIVATE) +int tor_tls_finish_handshake(tor_tls_t *tls); +#endif int tor_tls_renegotiate(tor_tls_t *tls); void tor_tls_block_renegotiation(tor_tls_t *tls); int tor_tls_shutdown(tor_tls_t *tls); @@ -85,5 +88,12 @@ int tor_tls_used_v1_handshake(tor_tls_t *tls); void _check_no_tls_errors(const char *fname, int line); +#ifdef USE_BUFFEREVENTS +int tor_tls_start_renegotiating(tor_tls_t *tls); +struct bufferevent *tor_tls_init_bufferevent(tor_tls_t *tls, + struct bufferevent *bufev_in, + evutil_socket_t socket, int receiving); +#endif + #endif |