Chris Plant <[EMAIL PROTECTED]> writes: > On Sun, 2002-05-19 at 13:23, Lutz Jaenicke wrote: > > On Sun, May 19, 2002 at 10:11:20AM +0100, Chris Plant wrote: > > > I have established a connection (using SSL_accept), and sent and > > > received data over it, before the connection is dropped and the server > > > reports the error (using ERR_get_error_string): > > > > > > "SSL_read: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version > > > number (336130315)" > > > > Please try to use ssldump (http://www.rtfm.com/ssldump) to help in analyzing > > your problem. I guess, that the client initiates a renegotiation and does > > not use the same version (SSLv2/SSLv3/TLSv1) that was chosen in the > > initial handshake. ssldump should show you, whether really a new handshake > > takes place. > > No, this is a different problem, I know there is 200 bytes in the > buffer, but when I ask for the first 60, the other 140 disappear, is > this due to the encryption ? Are you saying that you've got 200 bytes of ciphertext in the buffer, and then you ask for 60 bytes of plaintext and all 200 bytes of ciphertext are read?
If so, that's unsurprising. Remember that SSL is a record-oriented protocol, so OpenSSL needs to read the entire record to give you your data, no matter how many bytes you ask for.... -Ekr -- [Eric Rescorla [EMAIL PROTECTED]] http://www.rtfm.com/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]