How do you "know" there are 200 bytes in the buffer? Are you calling ioctl with 
FIONREAD to get the number of bytes in the socket? If so, then that value is the 
ciphertext count, including padding, SSL headers, MACs and other "stuff". It is not 
what's available to read from the SSL_read function.

-lee

-----Original Message-----
From: Chris Plant [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: SSL_read()


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 ?

Chris

> 
> Best regards,
>       Lutz
> -- 
> Lutz Jaenicke                             [EMAIL PROTECTED]
> http://www.aet.TU-Cottbus.DE/personen/jaenicke/
> BTU Cottbus, Allgemeine Elektrotechnik
> Universitaetsplatz 3-4, D-03044 Cottbus
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to