From: Ezra Peisach Date: Sat, 8 Jun 1996 11:52:27 +0000 (+0000) Subject: Dynamic test of byteorder when htonl was removed failed for half of the X-Git-Tag: krb5-1.0-beta7~411 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aac690f3144a1726d1bbc39cb894646917c90ab4;p=krb5.git 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 --- 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;