Dailou,

    OpenSSL should not give you *any* data until it receives a complete SSL
record and verifies the MAC. Therefore, if only part of a record is
available and you call SSL_pending() it should return 0. See also
(http://www.mail-archive.com/openssl-users@openssl.org/msg12683.html)

_____________________________________
Greg Stark
Ethentica, Inc.
[EMAIL PROTECTED]
_____________________________________


----- Original Message -----
From: "Dailou Walker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 14, 2001 10:13 AM
Subject: How to test for a complete SSL record? - HELP!


> Does anybody know what happens when we receive SSL data on agiven
> socket, but that data is not the complete SSL record. Does SSL put that
> "half-read" SSL record in the SSL buffer or does it keep it somewhere
> else until the record is complete?
>
> What happens on a call to SSL_pending if the SSL buffer is empty or
> "half-read" ? Does it return 0 ?
>
> Is there another way to test a socket which has data (i.e , is FD_SET)
> to know if the data is ready to be read, but without a call to SSL_read?
>
> Thanks for the help.
> Dailou Walker
>


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

Reply via email to