User-Visible krb5-strength Changes
+krb5-strength 1.1 (unreleased)
+
+ Fix variable sizes in the embedded CrackLib on 64-bit platforms. This
+ may fix interoperability problems with databases created on platforms
+ with a different native integer size. Thanks, Karl Lehnberger and
+ Benj Carson.
+
krb5-strength 1.0 (2010-02-16)
Add heimdal-strength, a program that checks password strength using
AC_CHECK_HEADERS([sys/bittypes.h])
AC_CHECK_DECLS([snprintf, vsnprintf])
AC_TYPE_LONG_LONG_INT
+AC_TYPE_UINT8_T
+AC_TYPE_UINT16_T
+AC_TYPE_UINT32_T
RRA_FUNC_SNPRINTF
AC_REPLACE_FUNCS([asprintf strlcat strlcpy])
*
* 2009-10-14 Russ Allbery <rra@stanford.edu>
* - Add ANSI C protototypes for all functions.
+ * 2010-03-14 Russ Allbery <rra@stanford.edu>
+ * - Use unsigned long instead of int32 to avoid printf warnings.
*/
#include "packer.h"
int
main(int argc, char *argv[])
{
- int32 readed;
- int32 wrote;
+ unsigned long readed;
+ unsigned long wrote;
PWDICT *pwp;
char buffer[STRINGSIZE];
* - Add ANSI C prototypes and prototype additional functions.
* 2009-10-14 Russ Allbery <rra@stanford.edu>
* - Prototype changes for const cleanliness.
+ * 2010-03-14 Russ Allbery <rra@stanford.edu>
+ * - Fix int8, int16, and int32 definitions.
*/
-#include <stdio.h>
+#include <config.h>
+#include <portable/system.h>
+
#include <ctype.h>
#define STRINGSIZE 1024
#define TRUNCSTRINGSIZE (STRINGSIZE/4)
-typedef unsigned char int8;
-typedef unsigned short int int16;
-typedef unsigned long int int32;
+typedef uint8_t int8;
+typedef uint16_t int16;
+typedef uint32_t int32;
#ifndef NUMWORDS
#define NUMWORDS 16
#endif