summaryrefslogtreecommitdiffstats
path: root/lib/libevent/event.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switched min_heap to size_t to prevent integer overflows.tobias2019-04-291-2/+2
| | | | | | | | | | Also, as deraadt suggested, switched realloc to recallocarray to at least prevent uninitialized memory to be used as pointers in case of other programming errors. A proper solution (not using an array) needs more work. This change occured in sync with upstream libevent 2.2. with input by and ok bluhm, jca, tedu
* Fix CVE-2014-6272 in Libevent 1.4 from upstream:bluhm2015-01-051-2/+2
| | | | | | | | | | | - https://github.com/libevent/libevent/commit/7b21c4eabf1f3946d3f63cce1319c490caab8ecf - For this fix, we need to make sure that passing too-large inputs to the evbuffer functions can't make us do bad things with the heap. On top of that do: - Update libevent version to 1.4.15-stable. - Use SIZE_MAX from limits.h instead of a private define. - Do not declare 'size_t need' twice to avoid a compiler warning. OK sthen
* Libevent has compatibilty wrappers in evutil. OpenBSD does not usebluhm2014-10-311-3/+6
| | | | | | | | | them anymore, but evutil is still part of libevent's interface. Separate the API of evutil from libevent and do not include evutil.h from event.h automatically. A version bump is not necessary as the library itself does not change. Bulk ports build done by landry@ had no fallout. OK nicm@ deraadt@
* Fix whitespace errors in libevent.bluhm2014-10-301-9/+9
| | | | OK nicm@
* iRemove the #ifdef WIN32 implementation from libevent.bluhm2014-10-081-5/+1
| | | | OK nicm@
* add helper functions to use asr with libevent.eric2014-04-031-1/+22
| | | | ok deraadt@
* Expose _EVENT_VERSION in event.h. This is expected by net/tor, which will spewpascal2012-08-281-1/+3
| | | | | | out scary warnings if it's not there. Bump minor accordingly. Requested by and ok dcoppa@, ok nicm@
* fix typos; while here, improve spacing in comments.sobrado2011-07-071-3/+3
| | | | | | changes to libevent and zlib headers sent to the upstream maintainers. ok jmc@ (for typos), millert@
* Hide the timeout_* macros under an EVENT_DEPRECATED ifdef. These namesnicm2010-05-311-1/+11
| | | | | | | | invite conflicts, they are rarely used, can trivially be replaced by evtimer_*, and are deprecated and removed from event.h in later libevent versions. ok guenther deraadt
* Clean up the awful _EVENT_* poo in the libevent headers, and don'tnicm2010-04-211-34/+4
| | | | | | install event-config.h. Pointed out by deraadt.
* Update libevent to 1.4.13.nicm2010-04-211-59/+934
| | | | | | | | | | | | | This is the core library only, the DNS parts are removed and it does not include the other extra bits (HTTP, DNS, and RPC), a separate port for these will appear in due course. Thanks to jsg, sthen, alek, gilles, jacekm, bernd and any others I've forgotten for testing/comments. Note that /usr/include/evdns.h should be removed after updating. ok deraadt
* - Use a const pointer for bufferevent_write.brad2008-05-021-3/+4
| | | | | | | | - Make event_init return struct event_base *. From the libevent SVN repo. ok millert@
* Update to libevent 1.3e while retaining our local changes.brad2008-05-021-23/+22
| | | | | "No objection" millert@ "the diff looks and works fine" reyk@
* Update to libevent-1.3b while retaining our local changes. beck@ OKmillert2007-03-191-6/+64
|
* Add prototype for bufferevent_base_set().millert2007-02-131-1/+2
| | | | From the libevent SVN repo, by Thorsten Glaser via brad@
* Two libevent fixes from the SVN repo:millert2007-02-041-2/+2
| | | | | allow gotsig to terminate active event loop and evbuffer_find fix. OK brad@ pyr@
* introduce a way to free the base.brad2006-03-301-1/+3
| | | | From libevent CVS
* another fix from art.brad2006-01-251-2/+2
| | | | From libevent CVS
* add evbuffer_add_vprintf interface from artur grabowskibrad2006-01-231-2/+5
| | | | | | From libevent CVS ok markus@
* update to libevent 1.1a; keep local changesbrad2005-06-181-2/+2
| | | | ok grunk@
* this is libevent 1.0ebrad2005-05-071-2/+2
|
* update to libevent 1.0d; keep local changesbrad2005-05-041-2/+3
| | | | | | | thanks to Alexander von Gernler for testing and some bug fixes ok mpf@ norby@
* update to libevent 1.0c; keep local changesbrad2005-04-221-15/+44
| | | | | | | | | | no shared lib so no ABI/API check is necessary thanks to Alexander von Gernler for submitting another diff in an attempt to update libevent and for a use-after-free fix. ok henning@ deraadt@
* backout. not discussed, and very wrong. bad bradderaadt2005-04-191-44/+15
|
* update to libevent 1.0c; keep local changesbrad2005-04-191-15/+44
|
* remove timeout_*() again; ok brad@markus2004-06-201-7/+1
|
* update to libevent 0.8; keep local changesbrad2004-04-281-8/+103
| | | | ok markus@
* change timeout_ API to evtimer_ API; avoiding clashes with kernel includeprovos2002-07-121-11/+6
| | | | files. okay mickey@
* undef the timeout_*(), this is still WRONG it does allow using both event.h and sys/timeout.h in the same source (which is a valid use for both), proper fix is to rename the timeout_*() api heremickey2002-06-251-1/+6
|
* rcsidsmickey2002-06-251-0/+2
|
* import libevent an event notification abstraction on top of select or kqueueprovos2002-06-151-0/+154
supporting timeout and signal callsbacks, too. okay deraadt@ millert@