mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
The KAME files md5.* and sha1.* have the following changelog
entry: ---------------------------- revision 1.2 date: 2000/12/04 01:20:38; author: tgl; state: Exp; lines: +18 -18 Eliminate some of the more blatant platform-dependencies ... it builds here now, anyway ... ---------------------------- Which basically changes u_int*_t -> uint*_t, so now it does not compile neither under Debian 2.2 nor under NetBSD 1.5 which is platform independent<B8> all right. Also it replaces $KAME$ with $Id$ which is Bad Thing. PostgreSQL Id should be added as a separate line so the file history could be seen. So here is patch: * changes uint*_t -> uint*. I guess that was the original intention * adds uint64 type to include/c.h because its needed [somebody should check if I did it right] * adds back KAME Id, because KAME is the master repository * removes stupid c++ comments in pgcrypto.c * removes <sys/types.h> from the code, its not needed -- marko Marko Kreen
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/* $Id: sha1.h,v 1.2 2000/12/04 01:20:38 tgl Exp $ */
|
||||
/* $Id: sha1.h,v 1.3 2001/01/09 16:07:13 momjian Exp $ */
|
||||
/* $KAME: sha1.h,v 1.4 2000/02/22 14:01:18 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
@@ -39,18 +40,18 @@
|
||||
|
||||
struct sha1_ctxt {
|
||||
union {
|
||||
uint8_t b8[20];
|
||||
uint32_t b32[5];
|
||||
uint8 b8[20];
|
||||
uint32 b32[5];
|
||||
} h;
|
||||
union {
|
||||
uint8_t b8[8];
|
||||
uint64_t b64[1];
|
||||
uint8 b8[8];
|
||||
uint64 b64[1];
|
||||
} c;
|
||||
union {
|
||||
uint8_t b8[64];
|
||||
uint32_t b32[16];
|
||||
uint8 b8[64];
|
||||
uint32 b32[16];
|
||||
} m;
|
||||
uint8_t count;
|
||||
uint8 count;
|
||||
};
|
||||
|
||||
extern void sha1_init (struct sha1_ctxt *);
|
||||
|
Reference in New Issue
Block a user