Description: fix password quality on amd64
Forwarded: a-del@iname.com on 2007-03-19
Author: Kaare Hviid <ukh@svansen.se>
Last-Update: 2007-03-19
Bug-Debian: http://bugs.debian.org/412618
--- a/sha/sha.c
+++ b/sha/sha.c
@@ -13,6 +13,7 @@
 */
 
 #include <string.h>
+#include <sys/types.h>
 #include "sha.h"
 
 /* The SHA f()-functions */
@@ -39,7 +40,7 @@
 
 /* 32-bit rotate - kludged with shifts */
 
-typedef unsigned long UL ;	/* to save space */
+typedef u_int32_t UL ;	/* to save space */
 
 #define S(n,X)  ( ( ((UL)X) << n ) | ( ((UL)X) >> ( 32 - n ) ) )
 
--- a/sha/sha.h
+++ b/sha/sha.h
@@ -16,7 +16,7 @@
 /* Useful defines/typedefs */
 
 typedef unsigned char   BYTE ;
-typedef unsigned long   LONG ;
+typedef u_int32_t  LONG ;
 
 /* The SHA block size and message digest sizes, in bytes */
 
