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
> #include <openssl/blowfish.h>
> 
> I try to get my key config with this command:
> 
>   BF_set_key(&key, 8, (unsigned char *)bf_key[1]);
>   BF_Decrypt(b, &key);
> 
> I hope this is correct so far?
> make && make install works so far.
> 
> But if i try to start apache i get this error message:
> 
> Syntax error on line 235 of /opt/apache/server/conf/httpd.conf:
> 
> Cannot load /opt/apache/server/modules/mod_auth_tkt.so into server: / 
> opt/apache/server/modules/mod_auth_tkt.so: undefined symbol: BF_Decrypt
> 
> Any ideas where i can look for this? 

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 Apache to load the library so that the symbol can be found at
runtime.

Peter
-- 
Contact: [EMAIL PROTECTED] (a.k.a. [EMAIL PROTECTED])
         #opensuse-mirrors on freenode.net
Info: http://en.opensuse.org/Mirror_Infrastructure
 
SUSE LINUX Products GmbH
Research & Development

Attachment: pgpbN8Ck8unfl.pgp
Description: PGP signature

Reply via email to