sbonazzo / rpms / cyrus-sasl

Forked from rpms/cyrus-sasl 2 years ago
Clone

Blame SOURCES/cyrus-sasl-2.1.26-warnings.patch

794a5c
diff -up cyrus-sasl-2.1.26/lib/server.c.warnings cyrus-sasl-2.1.26/lib/server.c
794a5c
--- cyrus-sasl-2.1.26/lib/server.c.warnings	2012-10-12 16:05:48.000000000 +0200
794a5c
+++ cyrus-sasl-2.1.26/lib/server.c	2012-12-20 17:49:39.620254792 +0100
794a5c
@@ -650,7 +650,7 @@ static int load_config(const sasl_callba
794a5c
             goto done;
794a5c
         }
794a5c
 
794a5c
-        snprintf(config_filename, len, "%.*s%c%s.conf", path_len, path_to_config, 
794a5c
+        snprintf(config_filename, len, "%.*s%c%s.conf", (int)path_len, path_to_config, 
794a5c
 	        HIER_DELIMITER, global_callbacks.appname);
794a5c
 
794a5c
         /* Ask the application if it's safe to use this file */
794a5c
diff -up cyrus-sasl-2.1.26/plugins/gssapi.c.warnings cyrus-sasl-2.1.26/plugins/gssapi.c
794a5c
--- cyrus-sasl-2.1.26/plugins/gssapi.c.warnings	2012-01-28 00:31:36.000000000 +0100
794a5c
+++ cyrus-sasl-2.1.26/plugins/gssapi.c	2012-12-20 17:49:39.620254792 +0100
794a5c
@@ -202,7 +202,8 @@ sasl_gss_seterror_(const sasl_utils_t *u
794a5c
     OM_uint32 msg_ctx;
794a5c
     int ret;
794a5c
     char *out = NULL;
794a5c
-    size_t len, curlen = 0;
794a5c
+    size_t len;
794a5c
+    unsigned curlen = 0;
794a5c
     const char prefix[] = "GSSAPI Error: ";
794a5c
 
794a5c
     if (!utils) return SASL_OK;
794a5c
diff -up cyrus-sasl-2.1.26/plugins/ldapdb.c.warnings cyrus-sasl-2.1.26/plugins/ldapdb.c
794a5c
--- cyrus-sasl-2.1.26/plugins/ldapdb.c.warnings	2012-01-28 00:31:36.000000000 +0100
794a5c
+++ cyrus-sasl-2.1.26/plugins/ldapdb.c	2012-12-20 17:49:39.621254788 +0100
794a5c
@@ -22,6 +22,7 @@
794a5c
 
794a5c
 #include "plugin_common.h"
794a5c
 
794a5c
+#define LDAP_DEPRECATED 1
794a5c
 #include <ldap.h>
794a5c
 
794a5c
 static char ldapdb[] = "ldapdb";
794a5c
diff -up cyrus-sasl-2.1.26/plugins/plugin_common.c.warnings cyrus-sasl-2.1.26/plugins/plugin_common.c
794a5c
--- cyrus-sasl-2.1.26/plugins/plugin_common.c.warnings	2013-09-03 14:40:35.181455452 +0200
794a5c
+++ cyrus-sasl-2.1.26/plugins/plugin_common.c	2013-09-03 14:40:38.320441024 +0200
794a5c
@@ -94,7 +94,7 @@ static void sockaddr_unmapped(
794a5c
     if (!IN6_IS_ADDR_V4MAPPED((&sin6->sin6_addr)))
794a5c
 	return;
794a5c
     sin4 = (struct sockaddr_in *)sa;
794a5c
-    addr = *(uint32_t *)&sin6->sin6_addr.s6_addr[12];
794a5c
+    addr = *(uint32_t *)&sin6->sin6_addr.s6_addr32[3];
794a5c
     port = sin6->sin6_port;
794a5c
     memset(sin4, 0, sizeof(struct sockaddr_in));
794a5c
     sin4->sin_addr.s_addr = addr;
794a5c
diff -up cyrus-sasl-2.1.26/saslauthd/auth_httpform.c.warnings cyrus-sasl-2.1.26/saslauthd/auth_httpform.c
794a5c
--- cyrus-sasl-2.1.26/saslauthd/auth_httpform.c.warnings	2012-10-12 16:05:48.000000000 +0200
794a5c
+++ cyrus-sasl-2.1.26/saslauthd/auth_httpform.c	2013-09-03 14:39:25.411776109 +0200
794a5c
@@ -574,7 +574,7 @@ auth_httpform (
794a5c
               "Content-Type: application/x-www-form-urlencoded" CRLF
794a5c
               "Content-Length: %d" TWO_CRLF
794a5c
               "%s",
794a5c
-              r_uri, r_host, r_port, strlen(req), req);
794a5c
+              r_uri, r_host, r_port, (int)strlen(req), req);
794a5c
 
794a5c
     if (flags & VERBOSE) {
794a5c
         syslog(LOG_DEBUG, "auth_httpform: sending %s %s %s",
794a5c
diff -up cyrus-sasl-2.1.26/saslauthd/auth_shadow.c.warnings cyrus-sasl-2.1.26/saslauthd/auth_shadow.c
794a5c
--- cyrus-sasl-2.1.26/saslauthd/auth_shadow.c.warnings	2012-10-12 16:05:48.000000000 +0200
794a5c
+++ cyrus-sasl-2.1.26/saslauthd/auth_shadow.c	2012-12-20 17:49:39.621254788 +0100
794a5c
@@ -70,6 +70,10 @@
794a5c
 #  include <shadow.h>
794a5c
 # endif /* ! HAVE_GETUSERPW */
794a5c
 
794a5c
+# ifdef HAVE_CRYPT_H
794a5c
+#  include <crypt.h>
794a5c
+# endif
794a5c
+
794a5c
 # include "auth_shadow.h"
794a5c
 # include "globals.h"
794a5c
 /* END PUBLIC DEPENDENCIES */