summaryrefslogtreecommitdiffstats
path: root/server/inputs_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/inputs_channel.c')
-rw-r--r--server/inputs_channel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/inputs_channel.c b/server/inputs_channel.c
index 1a64e2dd..c9c79be4 100644
--- a/server/inputs_channel.c
+++ b/server/inputs_channel.c
@@ -37,6 +37,7 @@
#include "red_common.h"
#include "reds.h"
#include "red_channel.h"
+#include "main_channel.h"
#include "inputs_channel.h"
#include "migration_protocol.h"
@@ -521,6 +522,11 @@ static void inputs_connect(RedChannel *channel, RedClient *client,
spice_assert(g_inputs_channel);
spice_assert(channel == &g_inputs_channel->base);
+ if (!stream->ssl) {
+ main_channel_client_push_notify(red_client_get_main(client),
+ "keyboard channel is insecure");
+ }
+
spice_printerr("inputs channel client create");
icc = (InputsChannelClient*)red_channel_client_create(sizeof(InputsChannelClient),
channel,