summaryrefslogtreecommitdiff
path: root/pkgtools/digest/files/sha1.h
diff options
context:
space:
mode:
authorjoerg <joerg>2007-07-03 18:54:02 +0000
committerjoerg <joerg>2007-07-03 18:54:02 +0000
commitb1f47f3d8cca6ca50e5b71ccc1eac2fbfd389633 (patch)
tree84edf4cd7f15da9de117606c170fdda232ac78c8 /pkgtools/digest/files/sha1.h
parent5d87df3eaf000bd611f624011e2f17c9f1464fab (diff)
downloadpkgsrc-b1f47f3d8cca6ca50e5b71ccc1eac2fbfd389633.tar.gz
Make pkgtools/digest cross-compilation ready and actually improve
portability somewhat: - consistently use POSIX uint{8,16,32,64}_t throughout the code. - asssume for now that the compiler supports ULL as suffix - use AC_TYPE_UINT{8,16,32,64}_T instead of bits.c to compute possible replacement types. Bump to 20070703. Tested by Thorsten Glaser on Interix and tnn@ on Solaris.
Diffstat (limited to 'pkgtools/digest/files/sha1.h')
-rw-r--r--pkgtools/digest/files/sha1.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/digest/files/sha1.h b/pkgtools/digest/files/sha1.h
index 991ab90cf75..4f9fca9b069 100644
--- a/pkgtools/digest/files/sha1.h
+++ b/pkgtools/digest/files/sha1.h
@@ -1,4 +1,4 @@
-/* $NetBSD: sha1.h,v 1.2 2002/12/21 04:06:15 schmonz Exp $ */
+/* $NetBSD: sha1.h,v 1.3 2007/07/03 18:54:05 joerg Exp $ */
/*
* SHA-1 in C
@@ -10,12 +10,12 @@
#define _SYS_SHA1_H_
typedef struct {
- u_int32_t state[5];
- u_int32_t count[2];
+ uint32_t state[5];
+ uint32_t count[2];
u_char buffer[64];
} SHA1_CTX;
-void SHA1Transform __P((u_int32_t state[5], const u_char buffer[64]));
+void SHA1Transform __P((uint32_t state[5], const u_char buffer[64]));
void SHA1Init __P((SHA1_CTX *context));
void SHA1Update __P((SHA1_CTX *context, const u_char *data, u_int len));
void SHA1Final __P((u_char digest[20], SHA1_CTX *context));