mirror of
git://git.proxmox.com/git/pve-libspice-server.git
synced 2025-08-22 10:17:14 +00:00
new upstream, updates for debian jessie
This commit is contained in:
parent
a4e135f4b8
commit
86cdaac65e
6
Makefile
6
Makefile
@ -1,8 +1,8 @@
|
|||||||
RELEASE=3.1
|
RELEASE=4.0
|
||||||
|
|
||||||
PACKAGE=pve-libspice-server1
|
PACKAGE=pve-libspice-server1
|
||||||
PKGVERSION=0.12.4
|
PKGVERSION=0.12.5
|
||||||
PKGRELEASE=3
|
PKGRELEASE=1
|
||||||
|
|
||||||
PKGDIR=spice-${PKGVERSION}
|
PKGDIR=spice-${PKGVERSION}
|
||||||
PKGSRC=${PKGDIR}.tar.bz2
|
PKGSRC=${PKGDIR}.tar.bz2
|
||||||
|
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
|||||||
|
pve-libspice-server (0.12.5-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* new upstream
|
||||||
|
|
||||||
|
* compile for debian jessie
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Sat, 28 Feb 2015 07:37:45 +0100
|
||||||
|
|
||||||
pve-libspice-server (0.12.4-3) unstable; urgency=low
|
pve-libspice-server (0.12.4-3) unstable; urgency=low
|
||||||
|
|
||||||
* use quilt for patch management
|
* use quilt for patch management
|
||||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -1,7 +1,7 @@
|
|||||||
Source: pve-libspice-server
|
Source: pve-libspice-server
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||||
Build-Depends: debhelper (>= 8.0.0), autotools-dev, pkg-config, libjpeg-dev, zlib1g-dev, python-pyparsing, libpixman-1-dev (>= 0.17.7~)
|
Build-Depends: debhelper (>= 8.0.0), autotools-dev, pkg-config, libjpeg-dev, zlib1g-dev, python-pyparsing, libpixman-1-dev (>= 0.17.7~), libogg-dev, libsasl2-dev
|
||||||
Standards-Version: 3.9.3
|
Standards-Version: 3.9.3
|
||||||
Section: libs
|
Section: libs
|
||||||
|
|
||||||
|
98
debian/patches/allow-to-set-sasl-callbacks.patch
vendored
98
debian/patches/allow-to-set-sasl-callbacks.patch
vendored
@ -1,16 +1,51 @@
|
|||||||
Index: new/server/reds.c
|
Index: new/server/spice-server.syms
|
||||||
===================================================================
|
===================================================================
|
||||||
--- new.orig/server/reds.c 2013-10-22 10:08:45.000000000 +0200
|
--- new.orig/server/spice-server.syms
|
||||||
+++ new/server/reds.c 2013-10-22 12:10:15.000000000 +0200
|
+++ new/server/spice-server.syms
|
||||||
@@ -108,6 +108,7 @@
|
@@ -148,6 +148,7 @@ global:
|
||||||
static int sasl_enabled = 0; // sasl disabled by default
|
|
||||||
|
SPICE_SERVER_0.12.5 {
|
||||||
|
global:
|
||||||
|
+ spice_server_set_sasl_callbacks;
|
||||||
|
spice_server_get_best_playback_rate;
|
||||||
|
spice_server_set_playback_rate;
|
||||||
|
spice_server_get_best_record_rate;
|
||||||
|
Index: new/server/spice.h
|
||||||
|
===================================================================
|
||||||
|
--- new.orig/server/spice.h
|
||||||
|
+++ new/server/spice.h
|
||||||
|
@@ -457,6 +457,7 @@ int spice_server_set_exit_on_disconnect(
|
||||||
|
int spice_server_set_noauth(SpiceServer *s);
|
||||||
|
int spice_server_set_sasl(SpiceServer *s, int enabled);
|
||||||
|
int spice_server_set_sasl_appname(SpiceServer *s, const char *appname);
|
||||||
|
+int spice_server_set_sasl_callbacks(SpiceServer *s, void *saslcb);
|
||||||
|
int spice_server_set_ticket(SpiceServer *s, const char *passwd, int lifetime,
|
||||||
|
int fail_if_connected, int disconnect_if_connected);
|
||||||
|
int spice_server_set_tls(SpiceServer *s, int port,
|
||||||
|
Index: new/server/reds_stream.c
|
||||||
|
===================================================================
|
||||||
|
--- new.orig/server/reds_stream.c
|
||||||
|
+++ new/server/reds_stream.c
|
||||||
|
@@ -48,6 +48,18 @@ extern SpiceCoreInterface *core;
|
||||||
#if HAVE_SASL
|
#if HAVE_SASL
|
||||||
static char *sasl_appname = NULL; // default to "spice" if NULL
|
#include <sasl/sasl.h>
|
||||||
|
|
||||||
+static sasl_callback_t *sasl_callbacks = NULL;
|
+static sasl_callback_t *sasl_callbacks = NULL;
|
||||||
#endif
|
+
|
||||||
static char *spice_name = NULL;
|
+SPICE_GNUC_VISIBLE int spice_server_set_sasl_callbacks(SpiceServer *s, void *saslcb)
|
||||||
static bool spice_uuid_is_set = FALSE;
|
+{
|
||||||
@@ -2540,7 +2541,7 @@
|
+#if HAVE_SASL
|
||||||
|
+ sasl_callbacks = (sasl_callback_t *)saslcb;
|
||||||
|
+ return 0;
|
||||||
|
+#else
|
||||||
|
+ return -1;
|
||||||
|
+#endif
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
typedef struct RedsSASL {
|
||||||
|
sasl_conn_t *conn;
|
||||||
|
|
||||||
|
@@ -966,7 +978,7 @@ bool reds_sasl_start_auth(RedsStream *st
|
||||||
NULL, /* User realm */
|
NULL, /* User realm */
|
||||||
localAddr,
|
localAddr,
|
||||||
remoteAddr,
|
remoteAddr,
|
||||||
@ -19,46 +54,3 @@ Index: new/server/reds.c
|
|||||||
SASL_SUCCESS_DATA,
|
SASL_SUCCESS_DATA,
|
||||||
&sasl->conn);
|
&sasl->conn);
|
||||||
free(localAddr);
|
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
|
|
||||||
}
|
|
||||||
|
|
||||||
Index: new/server/spice-server.syms
|
|
||||||
===================================================================
|
|
||||||
--- new.orig/server/spice-server.syms 2013-10-17 13:37:05.000000000 +0200
|
|
||||||
+++ new/server/spice-server.syms 2013-10-22 12:08:39.000000000 +0200
|
|
||||||
@@ -145,3 +145,8 @@
|
|
||||||
global:
|
|
||||||
spice_server_set_agent_file_xfer;
|
|
||||||
} SPICE_SERVER_0.12.3;
|
|
||||||
+
|
|
||||||
+SPICE_SERVER_0.12.5 {
|
|
||||||
+global:
|
|
||||||
+ spice_server_set_sasl_callbacks;
|
|
||||||
+} SPICE_SERVER_0.12.4;
|
|
||||||
Index: new/server/spice.h
|
|
||||||
===================================================================
|
|
||||||
--- new.orig/server/spice.h 2013-10-21 07:33:01.000000000 +0200
|
|
||||||
+++ new/server/spice.h 2013-10-22 12:03:36.000000000 +0200
|
|
||||||
@@ -446,6 +446,7 @@
|
|
||||||
int spice_server_set_noauth(SpiceServer *s);
|
|
||||||
int spice_server_set_sasl(SpiceServer *s, int enabled);
|
|
||||||
int spice_server_set_sasl_appname(SpiceServer *s, const char *appname);
|
|
||||||
+int spice_server_set_sasl_callbacks(SpiceServer *s, void *saslcb);
|
|
||||||
int spice_server_set_ticket(SpiceServer *s, const char *passwd, int lifetime,
|
|
||||||
int fail_if_connected, int disconnect_if_connected);
|
|
||||||
int spice_server_set_tls(SpiceServer *s, int port,
|
|
||||||
|
Binary file not shown.
BIN
spice-0.12.5.tar.bz2
Normal file
BIN
spice-0.12.5.tar.bz2
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user