make the function threadsafe by removing static on the local variable zeros

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12662 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-08-27 13:34:13 +00:00
parent 63f8f216cd
commit 1890d21435

View File

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