summaryrefslogtreecommitdiff
path: root/sys/crypto/sha1.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-07-20 19:54:02 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-07-20 19:54:02 +0000
commit57a2a13c89d839989d90f2963620e58ff756ae7a (patch)
tree6492c2c24ef24de5c9eabb6807f914a84df3f235 /sys/crypto/sha1.c
parentb786b3f9acb91d67ba44bdbadf1c89d9f4b57d70 (diff)
unbreak landisk kernel sha1 by working around a compiler bug;
also brings kernel sha1 more in line with userland; discussed with miod@ and millert@;
Diffstat (limited to 'sys/crypto/sha1.c')
-rw-r--r--sys/crypto/sha1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/sha1.c b/sys/crypto/sha1.c
index d1674a14b01..211d804c45c 100644
--- a/sys/crypto/sha1.c
+++ b/sys/crypto/sha1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1.c,v 1.6 2007/04/10 17:47:55 miod Exp $ */
+/* $OpenBSD: sha1.c,v 1.7 2007/07/20 19:54:01 otto Exp $ */
/*
* SHA-1 in C
@@ -56,7 +56,7 @@ SHA1Transform(u_int32_t state[5], unsigned char buffer[SHA1_BLOCK_LENGTH])
} CHAR64LONG16;
CHAR64LONG16* block;
#ifdef SHA1HANDSOFF
- static unsigned char workspace[SHA1_BLOCK_LENGTH];
+ unsigned char workspace[SHA1_BLOCK_LENGTH];
block = (CHAR64LONG16 *)workspace;
bcopy(buffer, block, SHA1_BLOCK_LENGTH);