From aac690f3144a1726d1bbc39cb894646917c90ab4 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sat, 8 Jun 1996 11:52:27 +0000 Subject: [PATCH] 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 --- src/lib/crypto/sha/ChangeLog | 5 +++++ src/lib/crypto/sha/shs.c | 1 + 2 files changed, 6 insertions(+) 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 * 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; -- 2.26.2