diff options
| author | Bruce Momjian <bruce@momjian.us> | 2001-11-29 19:40:37 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2001-11-29 19:40:37 +0000 |
| commit | 8aa538cfd5a2bcdfc54aced86c7c17b502742fc6 (patch) | |
| tree | 8846d6eaad62039e8f9c933305e8ce4ed5b493d1 /contrib/pgcrypto/sha1.c | |
| parent | 0556f7ca87035e8974495dc6ec530794ace7782c (diff) | |
| download | postgresql-8aa538cfd5a2bcdfc54aced86c7c17b502742fc6.tar.gz | |
* When postgres.h does not define BYTE_ENDIAN pgcrypto
produces garbage.
I learned the hard way that
#if UNDEFINED_1 == UNDEFINED_2
#error "gcc is idiot"
#endif
prints "gcc is idiot" ...
Affected are MD5/SHA1 in internal library, and also HMAC-MD5/HMAC-SHA1/
crypt-md5 which use them. Blowfish is ok, also Rijndael on at
least x86.
Big thanks to Daniel Holtzman who send me a build log which
contained warning:
md5.c:246: warning: `X' defined but not used
Yes, gcc is that helpful...
Please apply this.
--
marko
Diffstat (limited to 'contrib/pgcrypto/sha1.c')
| -rw-r--r-- | contrib/pgcrypto/sha1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pgcrypto/sha1.c b/contrib/pgcrypto/sha1.c index 01bd072089..4f9a1b3984 100644 --- a/contrib/pgcrypto/sha1.c +++ b/contrib/pgcrypto/sha1.c @@ -1,4 +1,4 @@ -/* $Id: sha1.c,v 1.10 2001/11/05 17:46:23 momjian Exp $ */ +/* $Id: sha1.c,v 1.11 2001/11/29 19:40:37 momjian Exp $ */ /* $KAME: sha1.c,v 1.3 2000/02/22 14:01:18 itojun Exp $ */ /* @@ -36,6 +36,7 @@ */ #include "postgres.h" +#include "px.h" #include "sha1.h" |
