]> granicus.if.org Git - apache/commit
Implement a (bounded) buffer of request body data to provide a limited
authorJoe Orton <jorton@apache.org>
Thu, 22 Sep 2005 15:38:14 +0000 (15:38 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 22 Sep 2005 15:38:14 +0000 (15:38 +0000)
commit23a3c20db2ba540c8e3557772944c0513086f3ed
tree6b79554b173b2b7898d5f59253da1b047aae2b30
parent62b452801599ae626c78d67551e13a7152d71321
Implement a (bounded) buffer of request body data to provide a limited
but safe fix for the mod_ssl renegotiation-vs-requests-with-bodies
bug:

* modules/ssl/ssl_private.h (ssl_io_buffer_fill): Add prototype.

* modules/ssl/ssl_engine_io.c (ssl_io_buffer_fill,
ssl_io_filter_buffer): New functions.

* modules/ssl/ssl_engine_kernel.c (ssl_hook_Access): If a
renegotiation is needed, and the request has a non-zero
content-length, or a t-e header (and 100-continue was not requested),
call ssl_io_buffer_fill to set aside the request body data if
possible, then proceed with the negotiation.

PR: 12355

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@290965 13f79535-47bb-0310-9956-ffa450edef68
modules/ssl/ssl_engine_io.c
modules/ssl/ssl_engine_kernel.c
modules/ssl/ssl_private.h