-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi group,

Sorry to bother here, but I didn't get any reply from modules-dev, so this 
might be a slightly more
complicated issue. If anyone would like to help with this off-list, that would 
be great to avoid
pestering here :)

My connection-level input filter needs to replace a request with another 
request. This "another
request" is contained, in encrypted form, in the BODY of the POST request I'm 
going to replace. It's
a 100% transformation.

I'm using the ap_get_brigade() in a loop approach.

I've been able to use ap_save_brigade, and move all the request's bucket 
brigades to a ctx bucket
brigade, and use the last bucket-brigade of the request as starting point to 
insert the decrypted
request.

The problem is, Apache expects request headers in it's own bucket, and it's own 
bucket
brigade.

So, I can use that last bucket brigade to insert the first line of an HTTP 
request, but I
can't add headers. I even get the 'error while reading headers" error.

So, I've thought I'd just use that bucket brigade to insert the first line of 
request (GET /blabla
HTTP/1.1\r\n), and "then", append mode bucket brigades. But HOW to actually do 
this is eluding me.

Any ideas or different approaches to this problem?

The source for the function can be obtained from:
http://www.buanzo.com.ar/files/openpgp.conn.filter.in.c

It's a ripoff from the whole module, so it's easier to read.

Thanks!

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGq2YIAlpOsGhXcE0RCs6hAJ4nFcE8AmN5fQfo6vdFMkUxSOQr4ACfWgQ8
4GcFqH/LeS8Z/dC2wiMUu2A=
=YBlb
-----END PGP SIGNATURE-----

Reply via email to