summaryrefslogtreecommitdiff
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 44e463e80..484112b6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120010228
2 - (djm) Detect endianness in configure and use it in rijndael.c. Fixes
3 "Bad packet length" bugs.
4
120010227 520010227
2 - (bal) Applied shutdown() patch for sftp.c by Corinna Vinschen 6 - (bal) Applied shutdown() patch for sftp.c by Corinna Vinschen
3 <vinschen@redhat.com> 7 <vinschen@redhat.com>
@@ -4158,4 +4162,4 @@
4158 - Wrote replacements for strlcpy and mkdtemp 4162 - Wrote replacements for strlcpy and mkdtemp
4159 - Released 1.0pre1 4163 - Released 1.0pre1
4160 4164
4161$Id: ChangeLog,v 1.836 2001/02/27 03:42:58 djm Exp $ 4165$Id: ChangeLog,v 1.837 2001/02/27 21:14:40 djm Exp $
diff --git a/configure.in b/configure.in
index 9d6b0a737..b1eb4d4df 100644
--- a/configure.in
+++ b/configure.in
@@ -1,10 +1,11 @@
1# $Id: configure.in,v 1.256 2001/02/27 03:42:48 djm Exp $ 1# $Id: configure.in,v 1.257 2001/02/27 21:14:22 djm Exp $
2 2
3AC_INIT(ssh.c) 3AC_INIT(ssh.c)
4 4
5AC_CONFIG_HEADER(config.h) 5AC_CONFIG_HEADER(config.h)
6AC_PROG_CC 6AC_PROG_CC
7AC_CANONICAL_HOST 7AC_CANONICAL_HOST
8AC_C_BIGENDIAN
8 9
9# Checks for programs. 10# Checks for programs.
10AC_PROG_CPP 11AC_PROG_CPP
diff --git a/rijndael.c b/rijndael.c
index aafc3c229..8b213db07 100644
--- a/rijndael.c
+++ b/rijndael.c
@@ -58,7 +58,7 @@ void gen_tabs __P((void));
58 58
59#define byte(x,n) ((u1byte)((x) >> (8 * n))) 59#define byte(x,n) ((u1byte)((x) >> (8 * n)))
60 60
61#if BYTE_ORDER != LITTLE_ENDIAN 61#ifdef WORDS_BIGENDIAN
62#define BYTE_SWAP 62#define BYTE_SWAP
63#endif 63#endif
64 64