How can i decrypt a cookie in a module

2008-10-28 Thread Christian Klinger
Hello, how can i decrypt a blowfish sigend cookie in an module. I have tried to do this so far: mod_auth_tkt is the module which should decrypt the cookie. I have included openssl/blowfish in the mod_auth_tkt.c #include openssl/blowfish.h I try to get my key config with this command:

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Peter Poeml
On Tue, Oct 28, 2008 at 12:35:51PM +0100, Christian Klinger wrote: Hello, how can i decrypt a blowfish sigend cookie in an module. I have tried to do this so far: mod_auth_tkt is the module which should decrypt the cookie. I have included openssl/blowfish in the mod_auth_tkt.c

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Christian Klinger
The symbol BF_Decrypt is probably to be found in libcrypto from OpenSSL. When mod_auth_tkt was compiled, it was not linked with that library. So either you need to add -lcrypto to the compile command, or you can alternatively start Apache with the LoadFile directive, which will cause

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Dave Ingram
Christian Klinger wrote: thanks for the answers, but i donĀ“t get it. I try to add the Icrypto in my Makefile i get the error again: [snip] That's a font issue - it's actually a lowercase L (for library) rather than an uppercase i (for include directory). What file should i include to the

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Peter Poeml
On Tue, Oct 28, 2008 at 02:12:26PM +0100, Christian Klinger wrote: The symbol BF_Decrypt is probably to be found in libcrypto from OpenSSL. When mod_auth_tkt was compiled, it was not linked with that library. So either you need to add -lcrypto to the compile command, or you can

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Christian Klinger
Am 28.10.2008 um 14:30 schrieb Peter Poeml: On Tue, Oct 28, 2008 at 02:12:26PM +0100, Christian Klinger wrote: The symbol BF_Decrypt is probably to be found in libcrypto from OpenSSL. When mod_auth_tkt was compiled, it was not linked with that library. So either you need to add -lcrypto

Re: How can i decrypt a cookie in a module

2008-10-28 Thread Peter Poeml
Hi Christian, On Tue, Oct 28, 2008 at 02:45:05PM +0100, Christian Klinger wrote: now i have the -lssl and -lcrypt in the gcc command but i alwas get the same error again. With the same error, you mean the same symbol is still missing when you run Apache and use the modules functionality?