diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2010-03-10 10:12:15 +0200 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2010-03-14 15:35:02 +0200 |
commit | eea29361db0fcf399b9843c789a7eefae758159e (patch) | |
tree | ca3c97f7e2c244b2fb546f915237ea40e74074a0 /client/red_client.cpp | |
parent | ffdf050cce98b3be61ccc44373441eff5915ad7f (diff) | |
download | spice-eea29361db0fcf399b9843c789a7eefae758159e.tar.gz spice-eea29361db0fcf399b9843c789a7eefae758159e.tar.xz spice-eea29361db0fcf399b9843c789a7eefae758159e.zip |
client: add command line support for ciphers, ca file, and host certificate subject #573371spice-client-0.4.2-2.el6
Diffstat (limited to 'client/red_client.cpp')
-rw-r--r-- | client/red_client.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp index df88e7a8..90793266 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -129,14 +129,15 @@ void Migrate::run() DBG(0, ""); try { conn_type = _client.get_connection_options(RED_CHANNEL_MAIN); - RedPeer::ConnectionOptions con_opt(conn_type, _port, _sport, _auth_options); + RedPeer::ConnectionOptions con_opt(conn_type, _port, _sport, _auth_options, _con_ciphers); MigChannels::iterator iter = _channels.begin(); connection_id = _client.get_connection_id(); connect_one(**iter, con_opt, connection_id); for (++iter; iter != _channels.end(); ++iter) { conn_type = _client.get_connection_options((*iter)->get_type()); - con_opt = RedPeer::ConnectionOptions(conn_type, _port, _sport, _auth_options); + con_opt = RedPeer::ConnectionOptions(conn_type, _port, _sport, + _auth_options, _con_ciphers); connect_one(**iter, con_opt, connection_id); } _connected = true; @@ -186,6 +187,7 @@ void Migrate::start(const RedMigrationBegin* migrate) migrate->pub_key_size); } + _con_ciphers = _client.get_connection_ciphers(); _password = _client._password; Lock lock(_lock); _running = true; @@ -410,6 +412,7 @@ void RedClient::connect() } _host_auth_opt = _application.get_host_auth_opt(); + _con_ciphers = _application.get_connection_ciphers(); RedChannel::connect(); } |