new libspice api: add spice_server_set_channel_security()

This commit is contained in:
Gerd Hoffmann 2010-03-09 14:53:37 +01:00 committed by Alexander Larsson
parent 0c23da34c5
commit 593fb119bc
2 changed files with 17 additions and 0 deletions

View File

@ -5634,6 +5634,19 @@ spice_image_compression_t spice_server_get_image_compression(SpiceServer *s)
return image_compression;
}
int spice_server_set_channel_security(SpiceServer *s,
spice_channel_name_t channel,
int security)
{
ASSERT(reds == s);
if (channel == SPICE_CHANNEL_NAME_ALL) {
set_all_channels_security(security);
} else {
set_one_channel_security(channel, security);
}
return 0;
}
int spice_server_add_interface(SpiceServer *s, VDInterface *interface)
{
ASSERT(reds == s);

View File

@ -78,4 +78,8 @@ typedef enum {
#define SPICE_CHANNEL_SECURITY_NONE (1 << 0)
#define SPICE_CHANNEL_SECURITY_SSL (1 << 1)
int spice_server_set_channel_security(SpiceServer *s,
spice_channel_name_t channel,
int security);
#endif