Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Anthony Iliopoulos (ailioplsu.edu)
Date: Sun Jun 06 2010 - 08:19:44 CDT
On Sun, Jun 06, 2010 at 11:24:50AM +0200, Pedro Fortuny Ayuso wrote:
> Yes, I did isolate the fault: it is the crypt() call for sure. Most probably
> it is the
> sshd thread context thing you mention (it is the only way I have tried to
> run it so far).
> As a matter of fact I tried to use also OpenSSL's BIOs and got another
> segfault when calling BIO_free() (all this in through sshd), which makes
> me think the thread context is the key to the problem.
> I shall try and use the crypt_r version. However, could you point me
> to some place where this thread context of sshd is explained? Is there a way
I don't believe there's any better explanation other than the source code,
see auth-pam.c in any openssh portable release tree.
> to replicate crypt() using OpenSSL?
There are several ways to replicate crypt() via OpenSSL, see
http://www.openssl.org/docs/crypto/des.html, I assume DES_fcrypt
is probably what you need.
> Thanks a lot,
Hope that helps,
Pam-list mailing list