summaryrefslogtreecommitdiff
path: root/spice.proto
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-05-13 13:14:29 +0100
committerFrediano Ziglio <fziglio@redhat.com>2016-05-13 13:32:10 +0100
commit1c97fea95616686f359451b3889d60ddd3ea0f3b (patch)
treeeb5ca5bfbc36320df66bb30cd433ccbe169ec636 /spice.proto
parent384698af370ce0f89c2746ed29a38a9157a41b31 (diff)
Explicitly specify size of SpiceMsgSmartcardData
Without this, the demarshalling code does not know we expect exactly SpiceMsgSmartcardData::length bytes, and has to guess it from the amount of data which was sent Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
Diffstat (limited to 'spice.proto')
-rw-r--r--spice.proto2
1 files changed, 1 insertions, 1 deletions
diff --git a/spice.proto b/spice.proto
index 4a0778d..d21510d 100644
--- a/spice.proto
+++ b/spice.proto
@@ -1334,7 +1334,7 @@ channel SmartcardChannel : BaseChannel {
vsc_message_type type;
uint32 reader_id;
uint32 length;
- uint8 data[] @end;
+ uint8 data[length] @end @nomarshal;
} @ctype(SpiceMsgSmartcard) data = 101;
client: