summaryrefslogtreecommitdiff
path: root/libcrypt/md5.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-28 23:00:43 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-28 23:00:43 +0000
commitbe78085df51bd0c9e8c3a7c0a4f13fe1f074130f (patch)
tree4b425caab48ce1ae8d171ce24a043621ae62ca79 /libcrypt/md5.c
parent1900d48810d3cae5bd00e8b43b33f8a5232a84f2 (diff)
I missed an item when reentrantifying des.c, reuse a smaller
field for md5.c -Erik
Diffstat (limited to 'libcrypt/md5.c')
-rw-r--r--libcrypt/md5.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrypt/md5.c b/libcrypt/md5.c
index f6e6709d7..66ff0d119 100644
--- a/libcrypt/md5.c
+++ b/libcrypt/md5.c
@@ -383,7 +383,10 @@ char * md5_crypt_r( const char *pw, const char *salt, struct crypt_data * data)
char *p = data->p;
const char *sp = data->sp;
const char *ep = data->ep;
- char *passwd = *data->KS;
+ char *passwd = data->key.b_data; /* This is a nice place where we can grab
+ a bit of reentrant space... I'd create
+ a separate field in struct crypt_data,
+ but this spot should do nicely... */
unsigned char final[17]; /* final[16] exists only to aid in looping */
int sl,pl,i,md5_magic_len,pw_len;
MD5_CTX ctx,ctx1;