What exactly is SSL_peek() used for? From looking
at ssl3_peek() it looks like it forces a read-ahead,
but I'm not exactly sure what is being done with the
rr->length and rr->off values. I presume it causes
a read and returns that data to the caller, then leaves
it there for the next SSL_read() operation (that's what
I'd expect a peek to do).
I scanned the whole release tree to make sure it
wasn't used internally by the OpenSSL code itself.
So it's there to provide applications with lookahead
capability. There doesn't seem to be a comparable
function in the sockets call set, so I can only presume
that SSL_peek() is there to somehow compensate
for difficulties caused by SSL data being chunked
into separate records instead of arriving as a stream.
I guess my main question is, does anyone use it?
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
Tom Biggs
'89 FJ1200 DoD #1146
"The whole aim of practical politics is to keep the populace alarmed -
and hence clamorous to be led to safety - by menacing it with an endless
series of hobgoblins, all of them imaginary." -- H.L. Mencken
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]