PAM with OpenSSL - urgent help needed
Thorsten Kukuk
kukuk at suse.de
Wed Feb 2 12:38:52 UTC 2005
On Wed, Feb 02, Boris Breslav wrote:
> Hi
> is there any reason that I should not use OpenSSL library (libcrypto) with
> PAM?
> The same piece of code works in a command line program and fails with my
> custom PAM module.
> I compile the module like this:
> gcc -c -fpic -I/usr/local/ssl/include mymodule.c
> gcc -shared mymodule.o -o pam_mymodule.so -L/usr/local/ssl/lib -lcrypto
>
> Could it be a problem that /usr/local/ssl/lib/libcrypto.a is a static
> library?
Linking a static library into a shared one is always a mistake and
should never be made.
Else I can only say I had never problems with that.
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk at suse.de
SuSE Linux Products GmbH Maxfeldstr. 5 D-90409 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
More information about the Pam-list
mailing list