Commits


bufio: add bufio_handshake to control the TLS handshake


bufio: fix bufio_read for TLS


bufio: add support for client certificates


fixup for bufio: convert to new


bufio: add bufio_close()


bufio: provide bufio_free()


bufio: convert to new ev' EV_* event types unfortunate, but a small coupling with either poll(2) or ev is needed.


ev: fix registering timers from timers callbacks We can't add items to the heap while we've iterating it, so we can't directly insert new times from a timer' callback. Instead, add them to a ``reserve'' space after the end of the heap, and merge them back inside the heap after all events have been processed.


ev: fix invalid fd check


ev: define EV_* constants instead of reusing POLL{IN,OUT} Dissociate us a bit from poll(2) so that we may even run on top of something else, and also allows to provide specific values for signal (EV_SIGNAL) and timers (EV_TIMEOUT).


import bufio from syncparty


test/evtest: invert order of timers registration


add some tests for multiple timers in ev


import ev.[ch] from syncparty and amused; locally tweaked to support an arbitrary number of timers.


hook telescope-identity.1