Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/mail/archiveopteryx/files/patch-core__md5.cpp
16461 views
1
--- core/md5.cpp.orig 2014-03-10 13:44:59 UTC
2
+++ core/md5.cpp
3
@@ -52,7 +52,7 @@ void MD5::init()
4
5
void MD5::add( const char *str, uint len )
6
{
7
- register uint32 t;
8
+ uint32 t;
9
10
/* It's not possible to add() data, call hash(), then add more data
11
and call hash() again, because hash() destroys the accumulated
12
@@ -149,12 +149,9 @@ EString MD5::hash()
13
}
14
swapBytes( in, 14 );
15
16
-#pragma GCC diagnostic push
17
-#pragma GCC diagnostic ignored "-Wstrict-aliasing"
18
/* Append length in bits and transform. */
19
((uint32 *)in)[14] = bits[0];
20
((uint32 *)in)[15] = bits[1];
21
-#pragma GCC diagnostic pop
22
transform();
23
swapBytes( (char *)buf, 4 );
24
25
@@ -247,7 +244,7 @@ EString MD5::HMAC( const EString &secret
26
27
void MD5::transform()
28
{
29
- register uint32 a, b, c, d;
30
+ uint32 a, b, c, d;
31
uint32 *inw = (uint32 *)in;
32
33
a = buf[0];
34
35