diff options
author | Alon Levy <alevy@redhat.com> | 2011-01-25 16:05:45 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-01-25 17:16:18 +0200 |
commit | 5a2ef3b21cd9ee1408a3c09d9a0ced363c8086f4 (patch) | |
tree | 5aa84042cb3affba0660963da41f946b8470a238 /client/application.cpp | |
parent | c29e4f9dd852231f04877ea700f0c3686f4500f3 (diff) | |
download | spice-5a2ef3b21cd9ee1408a3c09d9a0ced363c8086f4.tar.gz spice-5a2ef3b21cd9ee1408a3c09d9a0ced363c8086f4.tar.xz spice-5a2ef3b21cd9ee1408a3c09d9a0ced363c8086f4.zip |
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.
Diffstat (limited to 'client/application.cpp')
-rw-r--r-- | client/application.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp index d865e849..664449d3 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())) { |