diff options
Diffstat (limited to 'server/reds_stream.c')
-rw-r--r-- | server/reds_stream.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/reds_stream.c b/server/reds_stream.c index 837d2cbb..d2c05d91 100644 --- a/server/reds_stream.c +++ b/server/reds_stream.c @@ -29,6 +29,8 @@ #include <unistd.h> #include <sys/socket.h> +#include <glib.h> + #include <openssl/err.h> extern SpiceCoreInterface *core; @@ -303,6 +305,14 @@ bool reds_stream_is_ssl(RedsStream *stream) return (stream->priv->ssl != NULL); } +void reds_stream_set_info_flag(RedsStream *stream, unsigned int flag) +{ + g_return_if_fail((flag == SPICE_CHANNEL_EVENT_FLAG_TLS) + || (flag == SPICE_CHANNEL_EVENT_FLAG_ADDR_EXT)); + + stream->info->flags |= flag; +} + void reds_stream_disable_writev(RedsStream *stream) { stream->priv->writev = NULL; |