smtpd: remove tls_accept/tls_connect callbacks

2021-04-21 Thread Eric Faurot
There is actually no reason to defer calls to tls_accept_socket() and tls_connect_socket() in an event callback. The code can be simplified by a great deal. It also eliminates the issue of keeping a reference to the listener tls context in the io structure. Eric. Index: ioev.c

Re: smtpd: remove tls_accept/tls_connect callbacks

2021-04-28 Thread Eric Faurot
On Wed, Apr 21, 2021 at 11:21:51AM +0200, Eric Faurot wrote: > There is actually no reason to defer calls to tls_accept_socket() and > tls_connect_socket() in an event callback. The code can be simplified > by a great deal. It also eliminates the issue of keeping a reference > to the listener tls

Re: smtpd: remove tls_accept/tls_connect callbacks

2021-05-19 Thread Theo Buehler
On Wed, Apr 28, 2021 at 02:27:11PM +0200, Eric Faurot wrote: > On Wed, Apr 21, 2021 at 11:21:51AM +0200, Eric Faurot wrote: > > There is actually no reason to defer calls to tls_accept_socket() and > > tls_connect_socket() in an event callback. The code can be simplified > > by a great deal. It a