summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-08-02 09:54:46 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-08-27 09:10:53 +0300
commit35cf65a45e5327966d19cd5db0cb2c91bb828abe (patch)
tree1d723b98396a9b5998d7931f721a4bc73ab1dd9a /client
parent70f820ded2817b754947631e542e648e3f7d1d23 (diff)
downloadspice-35cf65a45e5327966d19cd5db0cb2c91bb828abe.tar.gz
spice-35cf65a45e5327966d19cd5db0cb2c91bb828abe.tar.xz
spice-35cf65a45e5327966d19cd5db0cb2c91bb828abe.zip
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.
Diffstat (limited to 'client')
-rw-r--r--client/red_client.cpp18
1 files changed, 9 insertions, 9 deletions
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);
}
}
}