httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saju Pillai <saju.pil...@gmail.com>
Subject Re: Need help with --activate-module
Date Thu, 05 Feb 2009 11:29:00 GMT
Shibu Narendranathan wrote:
> Hi All,
> 
> I am trying to implement a proprietary encryption mechanism on an
> existing apache server.
> What is desired is the following. 
> 
> Client                                Server
> ------------------------------|-----------------------------------------
> ----
> 1) sends a binary message to  | 1) receives and 
>    port80 (key Xchange msg)-> |    a) Checks if it is a normal http msg
>                               |       If yes, continue the normal way.
>                               |    b) Checks if it is a binary message
>                               |       (Let's assume it has a marker, say
>                               |        first 4 chars are FFFF)
>                               |       If yes, then return a response
> right
>    receive response (binary)  | <---  away & keep the connection open
> for more
>                               |       messages, which will be decrypted
> by the
>                               |       module and given to rest of layers
> (as if
>                               |       it were normal HTTP message).
>                               |
>   send encrypted message -->  |       The new module decrypts it and
> passes to
>   (binary)                    |       rest of the layers.
> 

Look at mod_echo.c, available in the default src tarballs for httpd-2 to 
see how a new/custom protocol is handled.

You may also want to look at mod_ssl to see how it decrypts HTTP 
messages and makes it available to apache.

-srp


Mime
View raw message