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:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user