summaryrefslogtreecommitdiff
path: root/libcrypt/md5.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-04-25 01:39:08 +0000
committerEric Andersen <andersen@codepoet.org>2002-04-25 01:39:08 +0000
commit3e87ecb2f6d97f0a12ba76a32f46bd0f27b72c1b (patch)
tree62928a831a9385192bc7b6bf902f8b200dd649c4 /libcrypt/md5.c
parent4844aa2aaca0e6d34c58ede6a8583f554c477feb (diff)
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
Diffstat (limited to 'libcrypt/md5.c')
-rw-r--r--libcrypt/md5.c4
1 files changed, 2 insertions, 2 deletions
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;