summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-28 08:14:22 +1100
committerDamien Miller <djm@mindrot.org>2001-02-28 08:14:22 +1100
commit4df5c76c2b217b3b487004731a13808ca6326bab (patch)
tree20ed66846f8101515d49666c0eb9263b81a1ddc7
parent6007f194839543b9f990c166fde9dfb615e94669 (diff)
- (djm) Detect endianness in configure and use it in rijndael.c. Fixes
"Bad packet length" bugs.
-rw-r--r--ChangeLog6
-rw-r--r--configure.in3
-rw-r--r--rijndael.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 44e463e8..484112b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20010228
+ - (djm) Detect endianness in configure and use it in rijndael.c. Fixes
+ "Bad packet length" bugs.
+
20010227
- (bal) Applied shutdown() patch for sftp.c by Corinna Vinschen
<vinschen@redhat.com>
@@ -4158,4 +4162,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
-$Id: ChangeLog,v 1.836 2001/02/27 03:42:58 djm Exp $
+$Id: ChangeLog,v 1.837 2001/02/27 21:14:40 djm Exp $
diff --git a/configure.in b/configure.in
index 9d6b0a73..b1eb4d4d 100644
--- a/configure.in
+++ b/configure.in
@@ -1,10 +1,11 @@
-# $Id: configure.in,v 1.256 2001/02/27 03:42:48 djm Exp $
+# $Id: configure.in,v 1.257 2001/02/27 21:14:22 djm Exp $
AC_INIT(ssh.c)
AC_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_CANONICAL_HOST
+AC_C_BIGENDIAN
# Checks for programs.
AC_PROG_CPP
diff --git a/rijndael.c b/rijndael.c
index aafc3c22..8b213db0 100644
--- a/rijndael.c
+++ b/rijndael.c
@@ -58,7 +58,7 @@ void gen_tabs __P((void));
#define byte(x,n) ((u1byte)((x) >> (8 * n)))
-#if BYTE_ORDER != LITTLE_ENDIAN
+#ifdef WORDS_BIGENDIAN
#define BYTE_SWAP
#endif