diff options
| author | Ezra Peisach <epeisach@mit.edu> | 1996-06-08 11:52:27 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 1996-06-08 11:52:27 +0000 |
| commit | aac690f3144a1726d1bbc39cb894646917c90ab4 (patch) | |
| tree | 37c14d7e8e2d66c77ecc69c1e0827b01bd40439d /src | |
| parent | e56eabaaaa21807da01334ac5d9afa7c6bd39ac8 (diff) | |
| download | krb5-aac690f3144a1726d1bbc39cb894646917c90ab4.tar.gz krb5-aac690f3144a1726d1bbc39cb894646917c90ab4.tar.xz krb5-aac690f3144a1726d1bbc39cb894646917c90ab4.zip | |
Dynamic test of byteorder when htonl was removed failed for half of the
machines.... Always assumed little endian....
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8279 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/crypto/sha/ChangeLog | 5 | ||||
| -rw-r--r-- | src/lib/crypto/sha/shs.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/crypto/sha/ChangeLog b/src/lib/crypto/sha/ChangeLog index 6573f253c..bdc56a962 100644 --- a/src/lib/crypto/sha/ChangeLog +++ b/src/lib/crypto/sha/ChangeLog @@ -1,3 +1,8 @@ +Sat Jun 8 07:44:35 1996 Ezra Peisach (epeisach@mit.edu) + + * shs.c (longReverse): Test for big vs little endian failed for + big endian machines. + Thu Jun 6 15:43:26 1996 Theodore Y. Ts'o <tytso@mit.edu> * shs.c (longReverse): Don't use htonl(); it doesn't exist under diff --git a/src/lib/crypto/sha/shs.c b/src/lib/crypto/sha/shs.c index 1dc134c58..be4d8fd0d 100644 --- a/src/lib/crypto/sha/shs.c +++ b/src/lib/crypto/sha/shs.c @@ -219,6 +219,7 @@ void longReverse( LONG *buffer, int byteCount ) switch (init) { case 0: + init=1; cp = (char *) &init; if (*cp == 1) { init=2; |
