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, 10 May 2005 16:48:43 GMT
Brian Havard wrote:
>>>Is this function really thread-safe in OpenSSL even without the locking
>>>callbacks registered?
>>Probably not.
> Really? I can't see any use of locks in the fcrypt code or anything that
> looks thread-unsafe. The docs also state specifically that it IS thread
> safe.
> "DES_fcrypt() ... This function is thread safe, unlike the normal crypt".
> (from http://www.openssl.org/docs/crypto/des.html)

Ah. I was, I admit, thinking generally, i.e. that most things are not 
thread-safe without the locking call-backs. I don't disbelieve that this 
code is an exception. Apologies for confusion.

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

View raw message