TS implementation of crypt() for windows
| From: | Pierre Joye | Date: | Thu, 17 Jul 2008 22:40:07 +0000 |
| Subject: | TS implementation of crypt() for windows | ||
| Groups: | php.internals.win | ||
| Request: | Send a blank email to internals-win+get-77@lists.php.net to get a copy of this message | ||
HI!
Please find a new implementation of the crypt function for windows.
The current code is not thread safe and suffer from a security issue
since too long (we count in years now :P).
Here is the patch:
http://pierre.libgd.org/patches/crypt_r_win32.patch.txt
It uses the CryptoAPI for the MD5 version and a classic crypt_r
implementation for DES to keep BC. I would have liked to use the
cryptoAPI as well but the crypt's DES is not standard.
Before I apply this patch, I would like to know if you see any issue :)
Thanks for your feedbacks,
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org