On Sun, Sep 04, 2016 at 05:57:54AM -0400, Ted Unangst wrote: > Brent Cook wrote: > > @@ -246,14 +252,18 @@ An already existing socket can be upgrad > > .Fn tls_connect_socket . > > Alternatively, a secure connection can be established over a pair of > > existing > > file descriptors by calling > > -.Fn tls_connect_fds . > > +.Fn tls_connect_fds . Using > > +.Fn tls_connect_cbs , read and write callbacks can be specified to handle > > the > > +actual data transfer. > > I think we need just a wee bit more documentation. payload is not the clearest > name. It sounds like connection data. I think cookie? Or cbarg? Is it > necessary to pass the tls context to the callback? I think that's unusual.
Yes you need the ctx
