From c84283ad0d9cd099efd1ec566a6eb3c439887d6a Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 19 Jan 1997 05:20:46 +0000 Subject: [PATCH] (krb5_build_authenticator): It seems the CRC should be stored LSW first. (?) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1173 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/build_auth.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/krb5/build_auth.c b/lib/krb5/build_auth.c index 907843eef..f16c38efb 100644 --- a/lib/krb5/build_auth.c +++ b/lib/krb5/build_auth.c @@ -44,7 +44,13 @@ krb5_build_authenticator (krb5_context context, len = (len + 7) & ~7; crc_init_table (); crc = crc_update(p, len, 0); +#if 0 memcpy(p + 8, &crc, 4); +#endif + p[8] = crc & 0xff; + p[9] = (crc >> 8) & 0xff; + p[10] = (crc >> 16) & 0xff; + p[11] = (crc >> 24) & 0xff; result->length = len; result->data = malloc(len); memcpy(result->data, p, len);