summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-07-20 19:54:01 +0000
committerotto <otto@openbsd.org>2007-07-20 19:54:01 +0000
commit4210aaae0409711d5ef630b15536d4dc205a5229 (patch)
tree3827adcb4fdbf4167d5b3baa6d56ac382741ee79
parentMore code that tests for CPUCLASS_386 that can go away. Pointed out by (diff)
downloadwireguard-openbsd-4210aaae0409711d5ef630b15536d4dc205a5229.tar.xz
wireguard-openbsd-4210aaae0409711d5ef630b15536d4dc205a5229.zip
unbreak landisk kernel sha1 by working around a compiler bug;
also brings kernel sha1 more in line with userland; discussed with miod@ and millert@;
-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);