diff options
author | George Lebl <jirka@5z.com> | 2003-02-03 17:18:43 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 2003-02-03 17:18:43 +0000 |
commit | 9c250832fdeeee770ed8f7f061a34fcf43f3dfbe (patch) | |
tree | 4de25eb405f1e686f5e848eab99852d884620529 /daemon/md5.h | |
parent | 40839edc401df6319ee9be25af6ffb7fc5dfc812 (diff) | |
download | gdm-9c250832fdeeee770ed8f7f061a34fcf43f3dfbe.tar.gz |
Release 2.4.1.3GDM2_2_4_1_3
Mon Feb 03 09:18:01 2003 George Lebl <jirka@5z.com>
* Release 2.4.1.3
Mon Feb 03 09:16:10 2003 George Lebl <jirka@5z.com>
* daemon/md5.[ch]: Fix redhat bug #83334 by applying a modified
patch from Matt Wilson. Basically use guint32 instead of
our own type. This fixes cookie generation (and likely crashes)
on non-alpha 64bit platforms. Has 0 effect on non-64 bit
platforms. Also: My hovercraft is full of eels.
Diffstat (limited to 'daemon/md5.h')
-rw-r--r-- | daemon/md5.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/daemon/md5.h b/daemon/md5.h index 4899a3ef..319d5cd4 100644 --- a/daemon/md5.h +++ b/daemon/md5.h @@ -1,15 +1,9 @@ #ifndef GdmMD5_H #define GdmMD5_H -#ifdef __alpha -typedef unsigned int uint32; -#else -typedef unsigned long uint32; -#endif - struct GdmMD5Context { - uint32 buf[4]; - uint32 bits[2]; + guint32 buf[4]; + guint32 bits[2]; unsigned char in[64]; }; @@ -17,7 +11,7 @@ void gdm_md5_init (struct GdmMD5Context *context); void gdm_md5_update (struct GdmMD5Context *context, unsigned char const *buf, unsigned len); void gdm_md5_final (unsigned char digest[16], struct GdmMD5Context *context); -void gdm_md5_transform (uint32 buf[4], uint32 const in[16]); +void gdm_md5_transform (guint32 buf[4], guint32 const in[16]); /* * This is needed to make RSAREF happy on some MS-DOS compilers. |