[Haskell-cafe] Re: ANNOUNCE: tls, native TLS/SSL protocol
uzytkownik2 at gmail.com
Sat Oct 9 07:53:17 EDT 2010
On Sat, 2010-10-09 at 09:27 +0100, Vincent Hanquez wrote:
> On Fri, Oct 08, 2010 at 12:59:56PM +0100, Maciej Piechotka wrote:
> > 1. Could also callback in addition to handles be added?
> > Like:
> > connect' :: (ByteString -> IO ()) -> IO ByteString -> TLSClient IO ()
> Would an interface that generate the packet to send and just return them as
> bytes be even better ?
> connect' :: TLSClient () ByteString
> I'm hoping to have something like that so i can use quickcheck to verify that
> all possible configurations result in a workable connection.
I don't think I quite follow. Could you explain?
> > 2. Does listen corresponds to listen(2)? If yes how to handle STARTTLS
> > server-side? If no - please rename it.
> it's not doing the same thing as the socket listen(2).
> it waits for the handle passed as argument to establish a new TLS session as
> in: listen to the new tls connection.
> after reading STARTTLS, you would call listen that would listen for the TLS
> context to be established.
> Please suggest something, if you want me to rename it though, as I can't really
> think of a better name.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20101009/3045fc9f/attachment.bin
More information about the Haskell-Cafe