summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/ioev.c
AgeCommit message (Expand)Author
2017-05-17Introduce more use of freezero(). Also, remove ptr conditionals beforeTheo de Raadt
2016-12-03embed the struct iobuf instead of using a pointer.Eric Faurot
2016-11-30hide internal io flags and rename IO_PAUSE_{IN,OUT} to IO_{IN,OUT}Eric Faurot
2016-11-30make struct io opaque:Eric Faurot
2016-11-25normalize iobuf before reading into it.Eric Faurot
2016-11-24add an io_paused() function.Eric Faurot
2016-11-24add an io_fileno() accessorEric Faurot
2016-11-24add an io_ssl() accessorEric Faurot
2016-11-24add an io_error() accessor to avoid dereferencing the io struct directly.Eric Faurot
2016-11-24reset the io event when data is queued.Eric Faurot
2016-11-22Normalize the io input buffer internally when reinstalling the io event, soEric Faurot
2016-11-20add dedicated functions to set fd and callback on a struct io.Eric Faurot
2016-11-17Add io api functions for dealing with buffered data, as wrapper aroundEric Faurot
2016-11-17remove IO_TLSVERIFIED which is not a io event, and inline necessary codeEric Faurot
2016-11-16pass the user pointer as parameter to the io callback instead of havingEric Faurot
2016-05-16No need to store the return value of fcntl(fd, F_SETFL, flags).Todd C. Miller
2016-03-25Nuke session_socket_blockmode() and session_socket_linger(). UseKenneth R Westerback
2015-12-28remove spaces after '!'Joerg Jung
2015-12-22Wrap long lines.Sunil Nimmagadda
2015-10-16Use SSL_get_version() not SSL_get_cipher_version(); the former gives the TLSStuart Henderson
2015-10-14whitespacesGilles Chehade
2014-12-24Correctly fallback to PLAIN if opportunistics TLS fails during TLS handshake.Eric Faurot
2014-07-08fix typos.Igor Sobrado
2014-04-19(void) cast snprintf() calls that cannot truncate (and would be harmlessGilles Chehade
2014-04-19(void) cast strlcat(), they can't truncateGilles Chehade
2014-02-04do not call event_del() on non-initialized eventsEric Faurot
2013-12-26bcopy -> memmoveEric Faurot
2013-10-26%i -> %d in format stringsEric Faurot
2013-06-03call SSL_read() again if there is data pending in the SSL buffer.Eric Faurot
2013-05-24sync with OpenSMTPD 5.3.2Eric Faurot
2013-02-05- handle getaddrinfo() error as LKA_TEMPFAILGilles Chehade
2013-01-26Sync with our smtpd repo:Gilles Chehade
2012-11-23knfEric Faurot
2012-11-12Cleanups and improvements:Eric Faurot
2012-10-25Handle the case where writev() fails with EAGAIN. In theory it cannotEric Faurot
2012-10-10io_connect() can take an optional address to bind() before connecting.Eric Faurot
2012-09-14When printing ioev, do not segfault if there is no associated iobuf.Eric Faurot
2012-08-19Add warnings on io errors to help diagnosis.Eric Faurot
2012-05-25remove unused variableCharles Longeau
2012-01-30Add missing header needed by PRI format stringCharles Longeau
2012-01-29Import generic network IO code. The plan is to hide the boringEric Faurot