[Spice-devel] [PATCH spice-gtk 1/6] Update protocol and messages for semi-seamless migration
Marc-André Lureau
marcandre.lureau at gmail.com
Sun Dec 18 09:27:20 PST 2011
---
common/messages.h | 2 ++
spice.proto | 9 ++++++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/common/messages.h b/common/messages.h
index 556496b..4a69c35 100644
--- a/common/messages.h
+++ b/common/messages.h
@@ -73,6 +73,8 @@ typedef struct SpiceMsgMainMigrationBegin {
uint16_t pub_key_type;
uint32_t pub_key_size;
uint8_t *pub_key_data;
+ uint32_t cert_subject_size;
+ uint8_t *cert_subject_data;
} SpiceMsgMainMigrationBegin;
typedef struct SpiceMsgMainMigrationSwitchHost {
diff --git a/spice.proto b/spice.proto
index 748ae95..28a9435 100644
--- a/spice.proto
+++ b/spice.proto
@@ -167,9 +167,8 @@ channel MainChannel : BaseChannel {
uint16 sport;
uint32 host_size;
uint8 *host_data[host_size] @zero_terminated @marshall @nonnull;
- pubkey_type pub_key_type;
- uint32 pub_key_size;
- uint8 *pub_key_data[pub_key_size] @zero_terminated @marshall @nonnull;
+ uint32 cert_subject_size;
+ uint8 *cert_subject_data[cert_subject_size] @zero_terminated @marshall;
} @ctype(SpiceMsgMainMigrationBegin) migrate_begin = 101;
Empty migrate_cancel;
@@ -220,6 +219,8 @@ channel MainChannel : BaseChannel {
uint8 *cert_subject_data[cert_subject_size] @zero_terminated @marshall;
} @ctype(SpiceMsgMainMigrationSwitchHost) migrate_switch_host;
+ Empty migrate_end;
+
client:
message {
uint64 cache_size;
@@ -244,6 +245,8 @@ channel MainChannel : BaseChannel {
message {
uint32 num_tokens;
} @ctype(SpiceMsgcMainAgentTokens) agent_token;
+
+ Empty migrate_end;
};
enum8 clip_type {
--
1.7.7.4
More information about the Spice-devel
mailing list