summaryrefslogtreecommitdiff
path: root/src/lib/ethumb/md5.h
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@profusion.mobi>2013-01-25 14:46:05 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-02-26 10:17:28 -0300
commit95623dee10f47328b7b52ed9faf228d3fa209f8b (patch)
tree1f3e0b88bb7595e14328d2538e8ce59395693074 /src/lib/ethumb/md5.h
parent2656d7097e30c479d3457eb3785d6c70b38ea107 (diff)
ethumb: Support strict aliasing rules in MD5 code
Diffstat (limited to 'src/lib/ethumb/md5.h')
-rw-r--r--src/lib/ethumb/md5.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ethumb/md5.h b/src/lib/ethumb/md5.h
index 348fcd654b..cca8e8c84c 100644
--- a/src/lib/ethumb/md5.h
+++ b/src/lib/ethumb/md5.h
@@ -9,7 +9,11 @@
9typedef struct MD5Context { 9typedef struct MD5Context {
10 uint32_t buf[4]; 10 uint32_t buf[4];
11 uint32_t bits[2]; 11 uint32_t bits[2];
12 unsigned char in[64]; 12 union
13 {
14 unsigned char s[64];
15 uint32_t i[16];
16 } in;
13} MD5_CTX; 17} MD5_CTX;
14 18
15extern void MD5Init(MD5_CTX *context); 19extern void MD5Init(MD5_CTX *context);