aboutsummaryrefslogtreecommitdiffstats
path: root/cipher
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cipher/ChangeLog5
-rw-r--r--cipher/md5.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index ae4b51e7c..5c6f4a5e8 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 26 09:34:46 CEST 1999 Werner Koch <[email protected]>
+
+
+ * md5.c (md5_final): Fix for a SCO cpp bug.
+
Thu Jul 15 10:15:35 CEST 1999 Werner Koch <[email protected]>
diff --git a/cipher/md5.c b/cipher/md5.c
index a3725466b..035eaf11b 100644
--- a/cipher/md5.c
+++ b/cipher/md5.c
@@ -301,7 +301,10 @@ md5_final( MD5_CONTEXT *hd )
#define X(a) do { *p++ = hd->##a ; *p++ = hd->##a >> 8; \
*p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
#else /* little endian */
- #define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)
+ /*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/
+ /* Unixware's cpp doesn't like the above construct so we do it his way:
+ * (reported by Allan Clark) */
+ #define X(a) do { *(u32*)p = (*hd).a ; p += 4; } while(0)
#endif
X(A);
X(B);