From 3e87ecb2f6d97f0a12ba76a32f46bd0f27b72c1b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 25 Apr 2002 01:39:08 +0000 Subject: Rework libcrypt based on the openbsd crypt implementation so that it passes the DES validation suite. setkey_r, encrypt_r, and __des_crypt_r are not really reentrant now, and that should be fixed (or we should drop crypt_r and friends which are not supported by SuSv3). -Erik --- libcrypt/md5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrypt/md5.c') diff --git a/libcrypt/md5.c b/libcrypt/md5.c index 2231fd317..02025e5b1 100644 --- a/libcrypt/md5.c +++ b/libcrypt/md5.c @@ -86,7 +86,7 @@ static void __md5_Init (struct MD5Context *); static void __md5_Update (struct MD5Context *, const unsigned char *, unsigned int); static void __md5_Pad (struct MD5Context *); static void __md5_Final (unsigned char [16], struct MD5Context *); -static char * __md5_crypt_r( const char *pw, const char *salt, struct crypt_data * data); +//static char * __md5_crypt_r( const char *pw, const char *salt, struct crypt_data * data); static void __md5_Transform __P((u_int32_t [4], const unsigned char [64])); @@ -533,7 +533,7 @@ static void __md5_to64( char *s, unsigned long v, int n) * Use MD5 for what it is best at... */ -static char * __md5_crypt_r( const char *pw, const char *salt, struct crypt_data * data) +extern char * __md5_crypt_r( const char *pw, const char *salt, struct crypt_data * data) { char *p = data->p; const char *sp = data->sp; -- cgit v1.2.3