From 35cf65a45e5327966d19cd5db0cb2c91bb828abe Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Thu, 2 Aug 2012 09:54:46 +0300 Subject: seamless-migration: update spice-common submodule Also Update server and client according to the change of SpiceMsgMainMigrationBegin: it now holds all the fields inside SpiceMigrationDstInfo. --- client/red_client.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'client') diff --git a/client/red_client.cpp b/client/red_client.cpp index 8f86d3ef..6a712919 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -291,20 +291,20 @@ void Migrate::start(const SpiceMsgMainMigrationBegin* migrate) _sport = old_migrate->sport ? old_migrate->sport : -1;; _auth_options = _client.get_host_auth_options(); } else { - _host.assign((char *)migrate->host_data); - _port = migrate->port ? migrate->port : -1; - _sport = migrate->sport ? migrate->sport : -1; + _host.assign((char *)migrate->dst_info.host_data); + _port = migrate->dst_info.port ? migrate->dst_info.port : -1; + _sport = migrate->dst_info.sport ? migrate->dst_info.sport : -1; if ((peer_major == 1) || (peer_major == 2 && peer_minor < 1)) { _auth_options.type_flags = SPICE_SSL_VERIFY_OP_PUBKEY; - _auth_options.host_pubkey.assign(migrate->pub_key_data, migrate->pub_key_data + - migrate->pub_key_size); + _auth_options.host_pubkey.assign(migrate->dst_info.pub_key_data, migrate->dst_info.pub_key_data + + migrate->dst_info.pub_key_size); } else { _auth_options.type_flags = SPICE_SSL_VERIFY_OP_SUBJECT; _auth_options.CA_file = _client.get_host_auth_options().CA_file; - if (migrate->cert_subject_size != 0) { - _auth_options.host_subject.assign(migrate->cert_subject_data, - migrate->cert_subject_data + - migrate->cert_subject_size); + if (migrate->dst_info.cert_subject_size != 0) { + _auth_options.host_subject.assign(migrate->dst_info.cert_subject_data, + migrate->dst_info.cert_subject_data + + migrate->dst_info.cert_subject_size); } } } -- cgit