mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 17:07:15 +00:00
server/smartcard: handle BaseChannel messages
According to spice.proto the smartcard channel can receive acks and any other message defined in BaseChannel. While the spicec implementation didn't send an ACK spice-gtk does, so handle it.
This commit is contained in:
parent
4caf14087d
commit
de82fdb9dc
@ -454,6 +454,12 @@ static int smartcard_channel_handle_message(RedChannel *channel, SpiceDataHeader
|
||||
VSCMsgHeader* vheader = (VSCMsgHeader*)msg;
|
||||
SmartCardChannel* smartcard_channel = (SmartCardChannel*)channel;
|
||||
|
||||
if (header->type != SPICE_MSGC_SMARTCARD_DATA) {
|
||||
/* handle ack's, spicy sends them while spicec does not */
|
||||
return red_channel_handle_message(channel, header->size, header->type,
|
||||
msg);
|
||||
}
|
||||
|
||||
ASSERT(header->size == vheader->length + sizeof(VSCMsgHeader));
|
||||
switch (vheader->type) {
|
||||
case VSC_ReaderAdd:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user