|
|
2fd749 |
diff -up cyrus-sasl-2.1.27/configure.ac.sizes cyrus-sasl-2.1.27/configure.ac
|
|
|
2fd749 |
--- cyrus-sasl-2.1.27/configure.ac.sizes 2015-11-18 09:46:24.000000000 +0100
|
|
|
2fd749 |
+++ cyrus-sasl-2.1.27/configure.ac 2015-11-20 15:11:20.474588247 +0100
|
|
|
2fd749 |
@@ -1312,6 +1312,10 @@ AC_HEADER_STDC
|
|
|
2fd749 |
AC_HEADER_DIRENT
|
|
|
2fd749 |
AC_HEADER_SYS_WAIT
|
|
|
2fd749 |
AC_CHECK_HEADERS(crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h)
|
|
|
2fd749 |
+AC_CHECK_TYPES([long long, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t],,,[
|
|
|
2fd749 |
+#ifdef HAVE_INTTYPES_H
|
|
|
2fd749 |
+#include <inttypes.h>
|
|
|
2fd749 |
+#endif])
|
|
|
2fd749 |
|
|
|
2fd749 |
IPv6_CHECK_SS_FAMILY()
|
|
|
2fd749 |
IPv6_CHECK_SA_LEN()
|
|
|
2fd749 |
diff -up cyrus-sasl-2.1.27/include/makemd5.c.sizes cyrus-sasl-2.1.27/include/makemd5.c
|
|
|
2fd749 |
--- cyrus-sasl-2.1.27/include/makemd5.c.sizes 2015-10-15 15:44:43.000000000 +0200
|
|
|
2fd749 |
+++ cyrus-sasl-2.1.27/include/makemd5.c 2015-11-20 15:11:20.477588240 +0100
|
|
|
2fd749 |
@@ -82,12 +82,19 @@
|
|
|
2fd749 |
*/
|
|
|
2fd749 |
|
|
|
2fd749 |
|
|
|
2fd749 |
+#ifdef HAVE_CONFIG_H
|
|
|
2fd749 |
+#include "../config.h"
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
|
|
|
2fd749 |
#include <stdio.h>
|
|
|
2fd749 |
#include <string.h>
|
|
|
2fd749 |
#include <stdlib.h>
|
|
|
2fd749 |
#include <ctype.h>
|
|
|
2fd749 |
|
|
|
2fd749 |
+#ifdef HAVE_INTTYPES_H
|
|
|
2fd749 |
+#include <inttypes.h>
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
+
|
|
|
2fd749 |
|
|
|
2fd749 |
static void
|
|
|
2fd749 |
my_strupr(char *s)
|
|
|
2fd749 |
@@ -122,6 +129,18 @@ my_strupr(char *s)
|
|
|
2fd749 |
static void
|
|
|
2fd749 |
try_signed(FILE *f, int len)
|
|
|
2fd749 |
{
|
|
|
2fd749 |
+#ifdef HAVE_INT8_T
|
|
|
2fd749 |
+ BITSIZE(int8_t);
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
+#ifdef HAVE_INT16_T
|
|
|
2fd749 |
+ BITSIZE(int16_t);
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
+#ifdef HAVE_INT32_T
|
|
|
2fd749 |
+ BITSIZE(int32_t);
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
+#ifdef HAVE_INT64_T
|
|
|
2fd749 |
+ BITSIZE(int64_t);
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
BITSIZE(signed char);
|
|
|
2fd749 |
BITSIZE(short);
|
|
|
2fd749 |
BITSIZE(int);
|
|
|
2fd749 |
@@ -135,6 +154,18 @@ try_signed(FILE *f, int len)
|
|
|
2fd749 |
static void
|
|
|
2fd749 |
try_unsigned(FILE *f, int len)
|
|
|
2fd749 |
{
|
|
|
2fd749 |
+#ifdef HAVE_UINT8_T
|
|
|
2fd749 |
+ BITSIZE(uint8_t);
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
+#ifdef HAVE_UINT16_T
|
|
|
2fd749 |
+ BITSIZE(uint16_t);
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
+#ifdef HAVE_UINT32_T
|
|
|
2fd749 |
+ BITSIZE(uint32_t);
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
+#ifdef HAVE_UINT64_T
|
|
|
2fd749 |
+ BITSIZE(uint64_t);
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
BITSIZE(unsigned char);
|
|
|
2fd749 |
BITSIZE(unsigned short);
|
|
|
2fd749 |
BITSIZE(unsigned int);
|
|
|
2fd749 |
@@ -165,6 +196,11 @@ static int print_pre(FILE *f)
|
|
|
2fd749 |
"/* POINTER defines a generic pointer type */\n"
|
|
|
2fd749 |
"typedef unsigned char *POINTER;\n"
|
|
|
2fd749 |
"\n"
|
|
|
2fd749 |
+#ifdef HAVE_INTTYPES_H
|
|
|
2fd749 |
+ "/* We try to define integer types for our use */\n"
|
|
|
2fd749 |
+ "#include <inttypes.h>\n"
|
|
|
2fd749 |
+ "\n"
|
|
|
2fd749 |
+#endif
|
|
|
2fd749 |
);
|
|
|
2fd749 |
return 1;
|
|
|
2fd749 |
}
|
|
|
2fd749 |
@@ -212,31 +248,15 @@ int main(int argc, char **argv)
|
|
|
2fd749 |
|
|
|
2fd749 |
print_pre(f);
|
|
|
2fd749 |
|
|
|
2fd749 |
-#ifndef HAVE_INT8_T
|
|
|
2fd749 |
try_signed (f, 8);
|
|
|
2fd749 |
-#endif /* HAVE_INT8_T */
|
|
|
2fd749 |
-#ifndef HAVE_INT16_T
|
|
|
2fd749 |
try_signed (f, 16);
|
|
|
2fd749 |
-#endif /* HAVE_INT16_T */
|
|
|
2fd749 |
-#ifndef HAVE_INT32_T
|
|
|
2fd749 |
try_signed (f, 32);
|
|
|
2fd749 |
-#endif /* HAVE_INT32_T */
|
|
|
2fd749 |
-#ifndef HAVE_INT64_T
|
|
|
2fd749 |
try_signed (f, 64);
|
|
|
2fd749 |
-#endif /* HAVE_INT64_T */
|
|
|
2fd749 |
|
|
|
2fd749 |
-#ifndef HAVE_U_INT8_T
|
|
|
2fd749 |
try_unsigned (f, 8);
|
|
|
2fd749 |
-#endif /* HAVE_INT8_T */
|
|
|
2fd749 |
-#ifndef HAVE_U_INT16_T
|
|
|
2fd749 |
try_unsigned (f, 16);
|
|
|
2fd749 |
-#endif /* HAVE_U_INT16_T */
|
|
|
2fd749 |
-#ifndef HAVE_U_INT32_T
|
|
|
2fd749 |
try_unsigned (f, 32);
|
|
|
2fd749 |
-#endif /* HAVE_U_INT32_T */
|
|
|
2fd749 |
-#ifndef HAVE_U_INT64_T
|
|
|
2fd749 |
try_unsigned (f, 64);
|
|
|
2fd749 |
-#endif /* HAVE_U_INT64_T */
|
|
|
2fd749 |
|
|
|
2fd749 |
print_post(f);
|
|
|
2fd749 |
|