Re: Problem with OpenSSL buffering and SSL_write/read

2004-03-13 Thread Vitos László
Hi Daniele! I think the problem you are describing relates to some padding the OpenSSL library uses. It has to use padding because of some requirements of the cipher in use. So in fact when you are sending 64 bytes with SSL_write(), after encryption 138 bytes get sent through the TCP socket. I

Problem with OpenSSL buffering and SSL_write/read

2004-03-12 Thread Daniele Brevi
Hi to all, I have some problems with buffering mechanism in OpenSSL whit SSL_write/read. I want to add TLS protection at a simple c/s program. My code permits to set the socket buffer length. So, using the socket option TCP_NODELAY, I can send on the net packets with wanted length. Now I will do t