summaryrefslogtreecommitdiff
path: root/util-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-07-28 04:03:57 +0000
committerNick Mathewson <nickm@torproject.org>2009-07-28 04:03:57 +0000
commit709c21c48ca541c75bf803e6801c335d8ae3d043 (patch)
treeff87cc257ecf83765377ef01ce8c29cfa5d69cab /util-internal.h
parentb06b2649b4c7f5feaedea97c31001c14708e4d1f (diff)
downloadlibevent-709c21c48ca541c75bf803e6801c335d8ae3d043.tar.gz
Bufferevent support for openssl.
This code adds a new Bufferevent type that is only compiled when the openssl library is present. It supports using an SSL object and an event alert mechanism, which can either be an fd or an underlying bufferevent. There is still more work to do: the unit tests are incomplete, and we need to support flush and shutdown much better. Sometimes events are generated needlessly: this will hose performance. There's a new encrypting proxy in sample/le-proxy.c. This code has only been tested on OSX, and nowhere else. svn:r1382
Diffstat (limited to 'util-internal.h')
-rw-r--r--util-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-internal.h b/util-internal.h
index b2a371e0..5423a112 100644
--- a/util-internal.h
+++ b/util-internal.h
@@ -129,6 +129,9 @@ int evutil_strncasecmp(const char *, const char *, size_t);
#define EVUTIL_UPCAST(ptr, type, field) \
((type *)((char*)ptr) - evutil_offsetof(type, field))
+
+int evutil_socket_connect(evutil_socket_t *fd_ptr, struct sockaddr *sa, int socklen);
+
#ifdef __cplusplus
}
#endif