apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: Using OpenSSL's des_fcrypt for thread safe crypt()
Date Tue, 03 May 2005 11:51:30 GMT
Joe Orton wrote:
> On Mon, Apr 25, 2005 at 10:06:59PM +1000, Brian Havard wrote:
> 
>>I'd like to add to apr-util the ability to use des_fcrypt from the OpenSSL 
>>library as a possible thread-safe implementation of crypt() for systems that 
>>have no crypt_r().
>>
>>Does anyone have a problem with either the concept or implementation of this?
> 
> 
> With the implementation, at least, yes:
> - only pick up the dependency on -lcrypto on platforms which need this
> - keep the flag private to apr-util (i.e. use AC_CHECK_HEADERS and
> AC_DEFINE), it doesn't need to be exported via apu.h
> 
> Is this function really thread-safe in OpenSSL even without the locking
> callbacks registered?

Probably not.

-- 
http://www.apache-ssl.org/ben.html       http://www.thebunker.net/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Mime
View raw message