[Spice-commits] 2 commits - client/application.cpp server/reds.c
Alon Levy
alon at kemper.freedesktop.org
Tue Jan 25 07:16:45 PST 2011
client/application.cpp | 10 ++++++++++
server/reds.c | 5 +++++
2 files changed, 15 insertions(+)
New commits:
commit d3b22d86f070e816a2c1a27ca7b30d5587859fe8
Author: Alon Levy <alevy at redhat.com>
Date: Tue Jan 25 16:53:35 2011 +0200
client/server: add missing USE_TUNNEL
disable some code that only makes sense when USE_TUNNEL is defined
in client and server channel security level setting.
diff --git a/client/application.cpp b/client/application.cpp
index 664449d..d1aef1a 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -1913,7 +1913,9 @@ bool Application::set_channels_security(CmdLineParser& parser, bool on, char *va
channels_names["cursor"] = SPICE_CHANNEL_CURSOR;
channels_names["playback"] = SPICE_CHANNEL_PLAYBACK;
channels_names["record"] = SPICE_CHANNEL_RECORD;
+#ifdef USE_TUNNEL
channels_names["tunnel"] = SPICE_CHANNEL_TUNNEL;
+#endif
#ifdef USE_SMARTCARD
channels_names["smartcard"] = SPICE_CHANNEL_SMARTCARD;
#endif
@@ -2075,7 +2077,9 @@ bool Application::set_enable_channels(CmdLineParser& parser, bool enable, char *
channels_names["cursor"] = SPICE_CHANNEL_CURSOR;
channels_names["playback"] = SPICE_CHANNEL_PLAYBACK;
channels_names["record"] = SPICE_CHANNEL_RECORD;
+#ifdef USE_TUNNEL
channels_names["tunnel"] = SPICE_CHANNEL_TUNNEL;
+#endif
#ifdef USE_SMARTCARD
channels_names["smartcard"] = SPICE_CHANNEL_SMARTCARD;
#endif
diff --git a/server/reds.c b/server/reds.c
index 7f10f4d..470a0e6 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3017,7 +3017,9 @@ __visible__ int spice_server_set_channel_security(SpiceServer *s, const char *ch
[ SPICE_CHANNEL_CURSOR ] = "cursor",
[ SPICE_CHANNEL_PLAYBACK ] = "playback",
[ SPICE_CHANNEL_RECORD ] = "record",
+#ifdef USE_TUNNEL
[ SPICE_CHANNEL_TUNNEL ] = "tunnel",
+#endif
#ifdef USE_SMARTCARD
[ SPICE_CHANNEL_SMARTCARD] = "smartcard",
#endif
commit 5a2ef3b21cd9ee1408a3c09d9a0ced363c8086f4
Author: Alon Levy <alevy at redhat.com>
Date: Tue Jan 25 16:05:45 2011 +0200
client/server: add missing smartchannel channel security handling
The name to channel id mapping for the smartcard channel is missing,
add it in client and server.
diff --git a/client/application.cpp b/client/application.cpp
index d865e84..664449d 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -1914,6 +1914,9 @@ bool Application::set_channels_security(CmdLineParser& parser, bool on, char *va
channels_names["playback"] = SPICE_CHANNEL_PLAYBACK;
channels_names["record"] = SPICE_CHANNEL_RECORD;
channels_names["tunnel"] = SPICE_CHANNEL_TUNNEL;
+#ifdef USE_SMARTCARD
+ channels_names["smartcard"] = SPICE_CHANNEL_SMARTCARD;
+#endif
if (!strcmp(val, "all")) {
if ((val = parser.next_argument())) {
@@ -2073,6 +2076,9 @@ bool Application::set_enable_channels(CmdLineParser& parser, bool enable, char *
channels_names["playback"] = SPICE_CHANNEL_PLAYBACK;
channels_names["record"] = SPICE_CHANNEL_RECORD;
channels_names["tunnel"] = SPICE_CHANNEL_TUNNEL;
+#ifdef USE_SMARTCARD
+ channels_names["smartcard"] = SPICE_CHANNEL_SMARTCARD;
+#endif
if (!strcmp(val, "all")) {
if ((val = parser.next_argument())) {
diff --git a/server/reds.c b/server/reds.c
index 97e4623..7f10f4d 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3018,6 +3018,9 @@ __visible__ int spice_server_set_channel_security(SpiceServer *s, const char *ch
[ SPICE_CHANNEL_PLAYBACK ] = "playback",
[ SPICE_CHANNEL_RECORD ] = "record",
[ SPICE_CHANNEL_TUNNEL ] = "tunnel",
+#ifdef USE_SMARTCARD
+ [ SPICE_CHANNEL_SMARTCARD] = "smartcard",
+#endif
};
int i;
More information about the Spice-commits
mailing list