-Index: new/server/reds.c
-===================================================================
---- new.orig/server/reds.c 2013-10-22 10:08:45.000000000 +0200
-+++ new/server/reds.c 2013-10-22 12:10:15.000000000 +0200
-@@ -108,6 +108,7 @@
- static int sasl_enabled = 0; // sasl disabled by default
- #if HAVE_SASL
- static char *sasl_appname = NULL; // default to "spice" if NULL
-+static sasl_callback_t *sasl_callbacks = NULL;
- #endif
- static char *spice_name = NULL;
- static bool spice_uuid_is_set = FALSE;
-@@ -2540,7 +2541,7 @@
- NULL, /* User realm */
- localAddr,
- remoteAddr,
-- NULL, /* Callbacks, not needed */
-+ sasl_callbacks,
- SASL_SUCCESS_DATA,
- &sasl->conn);
- free(localAddr);
-@@ -4104,6 +4105,17 @@
- return 0;
- #else
- return -1;
-+#endif
-+}
-+
-+SPICE_GNUC_VISIBLE int spice_server_set_sasl_callbacks(SpiceServer *s, void *saslcb)
-+{
-+ spice_assert(reds == s);
-+#if HAVE_SASL
-+ sasl_callbacks = (sasl_callback_t *)saslcb;
-+ return 0;
-+#else
-+ return -1;
- #endif
- }
-