23 lines
806 B
Diff
23 lines
806 B
Diff
http://bugs.archlinux.org/task/15189
|
|
|
|
X-Git-Url: http://git.collabora.co.uk/?p=user%2Fkakaroto%2Flibnice.git;a=blobdiff_plain;f=stun%2Fsha1.c;h=d0e75d5047766c11fd5c37166e29d9a73e6e0d61;hp=94b2b4b096114d20ee0e12c3a688a10769eb678e;hb=e571e13fb03d217d27c1164379760f9d0c13d3ca;hpb=52f330873715fea4198c1450bd9bf3ff6bdd2f6d
|
|
|
|
diff --git a/stun/sha1.c b/stun/sha1.c
|
|
index 94b2b4b..d0e75d5 100644
|
|
--- a/stun/sha1.c
|
|
+++ b/stun/sha1.c
|
|
@@ -143,11 +143,11 @@ static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64])
|
|
{
|
|
uint32_t a, b, c, d, e;
|
|
typedef union {
|
|
- unsigned char c[64];
|
|
+ uint8_t c[64];
|
|
uint32_t l[16];
|
|
} CHAR64LONG16;
|
|
CHAR64LONG16* block;
|
|
- uint32_t workspace[16];
|
|
+ uint8_t workspace[64];
|
|
block = (CHAR64LONG16 *) workspace;
|
|
memcpy(block, buffer, 64);
|
|
|