aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-11-09 15:36:27 -0500
committerNick Mathewson <nickm@torproject.org>2010-11-09 15:36:27 -0500
commitd238d8386fd1b459fa8e31b63363c9bd58e321f9 (patch)
treed32940a57db5200847db23fc0b29872fd27d5c57 /src/common/tortls.h
parent1fb342dfab42f47a2e87d38c536bb9a52f1a0fcd (diff)
downloadtor-d238d8386fd1b459fa8e31b63363c9bd58e321f9.tar
tor-d238d8386fd1b459fa8e31b63363c9bd58e321f9.tar.gz
Add a testing-only option to use bufferevent_openssl as a filter
We need filtering bufferevent_openssl so that we can wrap around IOCP bufferevents on Windows. This patch adds a temporary option to turn on filtering mode, so that we can test it out on non-IOCP systems to make sure it hasn't got any surprising bugs. It also fixes some allocation/teardown errors in using bufferevent_openssl as a filter.
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r--src/common/tortls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h
index 50d14da52..fe7cd6cec 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -99,7 +99,8 @@ void tor_tls_log_one_error(tor_tls_t *tls, unsigned long err,
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);
+ evutil_socket_t socket, int receiving,
+ int filter);
#endif
#endif