httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: BUFF question: sucking data without consuming
Date Sun, 25 Jul 1999 19:29:57 GMT
To be honest, this sounds like a bug in openssl... renegotiation is a
transport layer issue, the application layer shouldn't be aware of it
except perhaps via a cert checking hook, but certainly not as an odd bump
in the stream.  For example, suppose the protocol you were wrapping was
IMAP, wouldn't you require this bsuck all over the place?


On Sun, 25 Jul 1999, Ralf S. Engelschall wrote:

> For SSL renegotiation situations where POST methods are involved we have
> discovered that we need a way to transfer the pending POST data from OpenSSL's
> underlaying input buffer (a BIO) to Apache's buffer (a BUFF), but _without_
> consuming it through the ap_gets/ap_read and friends functions.
> The intent is that this way the SSL BIO is empty and the renegotiation can be
> successfully done while after the renegotiation Apache's upper layer can
> resume the POST handling (in mod_cgi, etc.).
> So the question is: Is there an easy way to read the POST data into Apache's
> BUFF without consuming it. Or have we write an own ap_bsuck() function which
> does the trick? If yes, can it be based on existing ap_bxxx() functions or
> should it do the stuff directly?
>                                        Ralf S. Engelschall

View raw message