mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-02 05:50:40 +00:00
new libspice api: add spice_server_set_channel_security()
This commit is contained in:
parent
0c23da34c5
commit
593fb119bc
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user