summaryrefslogtreecommitdiff
path: root/net-p2p/bnbt/files/patch-sha1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/bnbt/files/patch-sha1.cpp')
-rw-r--r--net-p2p/bnbt/files/patch-sha1.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/net-p2p/bnbt/files/patch-sha1.cpp b/net-p2p/bnbt/files/patch-sha1.cpp
new file mode 100644
index 000000000000..ab0df251a7a7
--- /dev/null
+++ b/net-p2p/bnbt/files/patch-sha1.cpp
@@ -0,0 +1,32 @@
+--- sha1.cpp 2009-06-30 14:02:51.000000000 -0700
++++ sha1.cpp.new 2009-06-30 14:02:47.000000000 -0700
+@@ -44,9 +44,9 @@
+ m_count[1] = 0;
+ }
+
+-void CSHA1::Transform(unsigned long state[5], const unsigned char buffer[64])
++void CSHA1::Transform(unsigned int state[5], const unsigned char buffer[64])
+ {
+- unsigned long a = 0, b = 0, c = 0, d = 0, e = 0;
++ unsigned int a = 0, b = 0, c = 0, d = 0, e = 0;
+
+ SHA1_WORKSPACE_BLOCK* block;
+ static unsigned char workspace[64];
+@@ -96,7 +96,7 @@
+ // Use this function to hash in binary data and strings
+ void CSHA1::Update(const unsigned char* data, unsigned int len)
+ {
+- unsigned long i = 0, j = 0;
++ unsigned int i = 0, j = 0;
+
+ j = (m_count[0] >> 3) & 63;
+
+@@ -123,7 +123,7 @@
+
+ void CSHA1::Final()
+ {
+- unsigned long i = 0, j = 0;
++ unsigned int i = 0, j = 0;
+ unsigned char finalcount[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ for (i = 0; i < 8; i++)