summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/md5.c
diff options
context:
space:
mode:
authorBruce Momjian2001-11-29 19:40:37 +0000
committerBruce Momjian2001-11-29 19:40:37 +0000
commit8aa538cfd5a2bcdfc54aced86c7c17b502742fc6 (patch)
tree8846d6eaad62039e8f9c933305e8ce4ed5b493d1 /contrib/pgcrypto/md5.c
parent0556f7ca87035e8974495dc6ec530794ace7782c (diff)
* 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/md5.c')
-rw-r--r--contrib/pgcrypto/md5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pgcrypto/md5.c b/contrib/pgcrypto/md5.c
index 4b03f196067..a44ea6f8578 100644
--- a/contrib/pgcrypto/md5.c
+++ b/contrib/pgcrypto/md5.c
@@ -1,4 +1,4 @@
-/* $Id: md5.c,v 1.8 2001/10/25 05:49:19 momjian Exp $ */
+/* $Id: md5.c,v 1.9 2001/11/29 19:40:37 momjian Exp $ */
/* $KAME: md5.c,v 1.3 2000/02/22 14:01:17 itojun Exp $ */
/*
@@ -31,6 +31,7 @@
*/
#include "postgres.h"
+#include "px.h"
#include "md5.h"