1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/net-p2p/bnbt/files/patch-sha1.h
Florent Thoumie df9b24e2e2 Fix SHA1 on 64bit architectures.
PR:		ports/136197
Submitted by:	Chris Cowart <ccowart@rescomp.berkeley.edu>
2009-07-15 13:43:54 +00:00

32 lines
746 B
C++

--- sha1.h 2009-06-30 14:02:51.000000000 -0700
+++ sha1.h.new 2009-06-30 14:02:47.000000000 -0700
@@ -59,7 +59,7 @@
typedef union {
unsigned char c[64];
- unsigned long l[16];
+ unsigned int l[16];
} SHA1_WORKSPACE_BLOCK;
// Two different formats for ReportHash(...)
@@ -69,8 +69,8 @@
CSHA1();
virtual ~CSHA1();
- unsigned long m_state[5];
- unsigned long m_count[2];
+ unsigned int m_state[5];
+ unsigned int m_count[2];
unsigned char m_buffer[64];
unsigned char m_digest[20];
@@ -86,7 +86,7 @@
private:
// Private SHA-1 transformation
- void Transform(unsigned long state[5], const unsigned char buffer[64]);
+ void Transform(unsigned int state[5], const unsigned char buffer[64]);
};
#endif // ___SHA1_H___