Re: SSL thoughts

2014-07-17 Thread Jeff MAURY
Hello, back to work, I have the following thoughts: - encrypting just before we write to the socket may lead to other problems: if the resulting message is greater than the send buffer, then we would need to wait for the rest of the buffer. If between, we receive an handshake, we may

Re: SSL thoughts

2014-07-17 Thread Emmanuel Lécharny
Le 17/07/2014 17:15, Jeff MAURY a écrit : Hello, back to work, I have the following thoughts: - encrypting just before we write to the socket may lead to other problems: if the resulting message is greater than the send buffer, then we would need to wait for the rest of the buffer.

Re: SSL thoughts

2014-07-17 Thread Jeff MAURY
On Thu, Jul 17, 2014 at 5:53 PM, Emmanuel Lécharny elecha...@gmail.com wrote: Le 17/07/2014 17:15, Jeff MAURY a écrit : Hello, back to work, I have the following thoughts: - encrypting just before we write to the socket may lead to other problems: if the resulting message is

Re: SSL thoughts

2014-07-17 Thread Bernd Fondermann
Hi, just wanted to add my 2 eurocent, don't know if it really makes sense in the discussed context. In Vysper, a state machine is maintained which tracks the connection status between connected, started, authenticated, encrypted, etc. Depending on the connection state, Vysper will reject

Re: SSL thoughts

2014-07-17 Thread Emmanuel Lécharny
Le 17/07/2014 23:34, Bernd Fondermann a écrit : Hi, just wanted to add my 2 eurocent, don't know if it really makes sense in the discussed context. In Vysper, a state machine is maintained which tracks the connection status between connected, started, authenticated, encrypted, etc.