summaryrefslogtreecommitdiff
path: root/http-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-09-12 10:46:17 -0400
committerNick Mathewson <nickm@torproject.org>2011-09-12 10:48:35 -0400
commit8d3a8500f420bab66b94265285ab9c096f1c7a87 (patch)
tree0f75dc1dec3e466c24e5e4ad015dd2d122f9bc25 /http-internal.h
parentcaf133f90198961c1f9b8bdc74dd6f5385ec00b3 (diff)
downloadlibevent-8d3a8500f420bab66b94265285ab9c096f1c7a87.tar.gz
Add evhttp callback for bufferevent creation; this lets evhttp support SSL.
Based on a patch uploaded anonymously to sourceforge; cleaned up by Graham Leggett to work with current libevents.
Diffstat (limited to 'http-internal.h')
-rw-r--r--http-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/http-internal.h b/http-internal.h
index 05e286ca..e5c1972e 100644
--- a/http-internal.h
+++ b/http-internal.h
@@ -165,6 +165,8 @@ struct evhttp {
don't match. */
void (*gencb)(struct evhttp_request *req, void *);
void *gencbarg;
+ struct bufferevent* (*bevcb)(struct event_base *, void *);
+ void *bevcbarg;
struct event_base *base;
};