• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/libevent/

Lines Matching refs:bufferevent

56 #include "event2/bufferevent.h"
63 #include "bufferevent-internal.h"
72 * Define an OpenSSL bio that targets a bufferevent.
81 bufferevent. We'll want to use this only when none of OpenSSL's built-in
114 BIO_set_data(b, NULL); /* We'll be putting the bufferevent in this field.*/
162 struct bufferevent *bufev = BIO_get_data(b);
194 struct bufferevent *bufev = BIO_get_data(b);
230 /* Method table for the bufferevent BIO */
238 methods_bufferevent = BIO_meth_new(BIO_TYPE_LIBEVENT, "bufferevent");
251 /* Create a new BIO to wrap communication around a bufferevent. If close_flag
252 * is true, the bufferevent will be freed when the BIO is closed. */
254 BIO_new_bufferevent(struct bufferevent *bufferevent, int close_flag)
257 if (!bufferevent)
262 BIO_set_data(result, bufferevent);
268 Now, here's the OpenSSL-based implementation of bufferevent.
271 to an underlying bufferevent using a BIO_bufferevent, and one that has the
286 /* Shared fields with common bufferevent implementation code.
287 If we were set up with an underlying bufferevent, we use the
292 /* An underlying bufferevent that we're directing our output to.
294 struct bufferevent *underlying;
330 static int be_openssl_enable(struct bufferevent *, short);
331 static int be_openssl_disable(struct bufferevent *, short);
332 static void be_openssl_unlink(struct bufferevent *);
333 static void be_openssl_destruct(struct bufferevent *);
334 static int be_openssl_adj_timeouts(struct bufferevent *);
335 static int be_openssl_flush(struct bufferevent *bufev,
337 static int be_openssl_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *);
351 /* Given a bufferevent, return a pointer to the bufferevent_openssl that
354 upcast(struct bufferevent *bev)
378 /* Have the base communications channel (either the underlying bufferevent or
389 struct bufferevent *bev = &bev_ssl->bev.bev;
399 /* Have the base communications channel (either the underlying bufferevent or
412 struct bufferevent *bev = &bev_ssl->bev.bev;
430 struct bufferevent *bev = &bev_ssl->bev.bev;
444 struct bufferevent *bev = &bev_ssl->bev.bev;
470 struct bufferevent *bev = &bev_ssl->bev.bev;
484 struct bufferevent *bev = &bev_ssl->bev.bev;
582 struct bufferevent *bev = &bev_ssl->bev.bev;
653 struct bufferevent *bev = &bev_ssl->bev.bev;
821 * by reading too much data from the underlying bufferevent;
823 * bufferevent is a bufferevent_pair and deferred callbacks
836 struct bufferevent *bev = &bev_ssl->bev.bev;
861 struct bufferevent *bev = &bev_ssl->bev.bev;
900 be_openssl_readcb(struct bufferevent *bev_base, void *ctx)
907 be_openssl_writecb(struct bufferevent *bev_base, void *ctx)
914 be_openssl_eventcb(struct bufferevent *bev_base, short what, void *ctx)
970 struct bufferevent *bev = &bev_ssl->bev.bev;
987 struct bufferevent *bev = &bev_ssl->bev.bev;
1060 be_openssl_handshakecb(struct bufferevent *bev_base, void *ctx)
1096 struct bufferevent *bev = &bev_ssl->bev.bev;
1116 bufferevent_ssl_renegotiate(struct bufferevent *bev)
1153 be_openssl_enable(struct bufferevent *bev, short events)
1178 be_openssl_disable(struct bufferevent *bev, short events)
1197 be_openssl_unlink(struct bufferevent *bev)
1205 "bufferevent with too few references");
1225 be_openssl_destruct(struct bufferevent *bev)
1243 be_openssl_adj_timeouts(struct bufferevent *bev)
1255 be_openssl_flush(struct bufferevent *bufev,
1291 be_openssl_ctrl(struct bufferevent *bev,
1326 bufferevent_openssl_get_ssl(struct bufferevent *bufev)
1334 static struct bufferevent *
1336 struct bufferevent *underlying,
1400 struct bufferevent *
1402 struct bufferevent *underlying,
1407 /* We don't tell the BIO to close the bufferevent; we do it ourselves
1422 struct bufferevent *
1465 bufferevent_openssl_get_allow_dirty_shutdown(struct bufferevent *bev)
1478 bufferevent_openssl_set_allow_dirty_shutdown(struct bufferevent *bev,
1490 bufferevent_get_openssl_error(struct bufferevent *bev)