From 57a2a13c89d839989d90f2963620e58ff756ae7a Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 20 Jul 2007 19:54:02 +0000 Subject: unbreak landisk kernel sha1 by working around a compiler bug; also brings kernel sha1 more in line with userland; discussed with miod@ and millert@; --- sys/crypto/sha1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/crypto/sha1.c') 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); -- cgit v1.2.3