summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/sha1.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-12-04 01:20:38 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-12-04 01:20:38 +0000
commit7a4cc54e58b527ef8e569d2096ba7639c70e48b6 (patch)
treef27eea23207711c1f85a3d610e3df6f3ad28af6c /contrib/pgcrypto/sha1.h
parent2bf2ee7814e67ceec93cdcba8375dccc362534eb (diff)
downloadpostgresql-7a4cc54e58b527ef8e569d2096ba7639c70e48b6.tar.gz
Eliminate some of the more blatant platform-dependencies ... it builds here now, anyway ...
Diffstat (limited to 'contrib/pgcrypto/sha1.h')
-rw-r--r--contrib/pgcrypto/sha1.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/pgcrypto/sha1.h b/contrib/pgcrypto/sha1.h
index e4b6453abe..13037026bb 100644
--- a/contrib/pgcrypto/sha1.h
+++ b/contrib/pgcrypto/sha1.h
@@ -1,4 +1,4 @@
-/* $KAME: sha1.h,v 1.4 2000/02/22 14:01:18 itojun Exp $ */
+/* $Id: sha1.h,v 1.2 2000/12/04 01:20:38 tgl Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -39,24 +39,24 @@
struct sha1_ctxt {
union {
- u_int8_t b8[20];
- u_int32_t b32[5];
+ uint8_t b8[20];
+ uint32_t b32[5];
} h;
union {
- u_int8_t b8[8];
- u_int64_t b64[1];
+ uint8_t b8[8];
+ uint64_t b64[1];
} c;
union {
- u_int8_t b8[64];
- u_int32_t b32[16];
+ uint8_t b8[64];
+ uint32_t b32[16];
} m;
- u_int8_t count;
+ uint8_t count;
};
-extern void sha1_init __P((struct sha1_ctxt *));
-extern void sha1_pad __P((struct sha1_ctxt *));
-extern void sha1_loop __P((struct sha1_ctxt *, const caddr_t, size_t));
-extern void sha1_result __P((struct sha1_ctxt *, caddr_t));
+extern void sha1_init (struct sha1_ctxt *);
+extern void sha1_pad (struct sha1_ctxt *);
+extern void sha1_loop (struct sha1_ctxt *, const caddr_t, size_t);
+extern void sha1_result (struct sha1_ctxt *, caddr_t);
/* compatibilty with other SHA1 source codes */
typedef struct sha1_ctxt SHA1_CTX;