(MD5_Final): make the function threadsafe by removing static on the

local variable zeros


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12749 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-09-03 09:27:16 +00:00
parent 49e0243cc5
commit c9681ae897

View File

@@ -236,7 +236,7 @@ MD5_Update (struct md5 *m, const void *v, size_t len)
void
MD5_Final (void *res, struct md5 *m)
{
static unsigned char zeros[72];
unsigned char zeros[72];
unsigned offset = (m->sz[0] / 8) % 64;
unsigned int dstart = (120 - offset - 1) % 64 + 1;