Bodo Moeller wrote:
> 
> On Wed, Nov 29, 2000 at 11:30:03AM -0500, Tom Biggs wrote:
> 
> > I guess my main question is, does anyone use it?
> 
> Yes, but it does not work.  The next release will contain a bugfix
> (not yet written).  What SSL_peek is supposed to do is behave like
> SSL_read, except that the data written to the application buffer
> is not removed from the internal buffers -- i.e., a subsequent
> SSL_read (or another SSL_peek) will get the same data again.

Hmm. What I do in the state_machine demo is have a one byte buffer and
do an SSL_read into it (if it is not already full) - since SSL_read will
return zero if there's nothing to read, this does the job. Presumably
SSL_peek could be implemented in a similar fashion. I guess there's more
elegant ways.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to