summaryrefslogtreecommitdiffstats
path: root/lib/md5.h
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:14 +0100
committerKarel Zak2006-12-07 00:26:14 +0100
commitd03dd60840f0a08464d5266539ad356aefe24b03 (patch)
tree0a9ad240a7a88eb6b11b152974a7a51a0df79b75 /lib/md5.h
parentImported from util-linux-2.12pre tarball. (diff)
downloadkernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.tar.gz
kernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.tar.xz
kernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.zip
Imported from util-linux-2.12a tarball.
Diffstat (limited to 'lib/md5.h')
-rw-r--r--lib/md5.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/md5.h b/lib/md5.h
index 83ec5b09d..ec07650c6 100644
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -1,15 +1,16 @@
#ifndef MD5_H
#define MD5_H
-#if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__)
-typedef unsigned int uint32;
+#include "../defines.h"
+#ifdef HAVE_stdint_h
+#include <stdint.h>
#else
-typedef unsigned long uint32;
+typedef unsigned int uint32_t;
#endif
struct MD5Context {
- uint32 buf[4];
- uint32 bits[2];
+ uint32_t buf[4];
+ uint32_t bits[2];
unsigned char in[64];
};
@@ -17,7 +18,7 @@ void MD5Init(struct MD5Context *context);
void MD5Update(struct MD5Context *context, unsigned char const *buf,
unsigned len);
void MD5Final(unsigned char digest[16], struct MD5Context *context);
-void MD5Transform(uint32 buf[4], uint32 const in[16]);
+void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
/*
* This is needed to make RSAREF happy on some MS-DOS compilers.