diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2010-01-10 09:48:38 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2010-01-11 19:10:54 +0200 |
commit | 3eae1c80d97ce6d1e0eee69f7454973abdb94ef6 (patch) | |
tree | f8e88491e6ea9d4be7feb7e03ed1349325d7983a /client/red_client.h | |
parent | dcf326cfd523c135bd0be8f9a4bc2da6c78b2d23 (diff) | |
download | spice-3eae1c80d97ce6d1e0eee69f7454973abdb94ef6.tar.gz spice-3eae1c80d97ce6d1e0eee69f7454973abdb94ef6.tar.xz spice-3eae1c80d97ce6d1e0eee69f7454973abdb94ef6.zip |
server,client: server authentication for secured channels.
3 available mechanisms: by public key, by host name, and by certificate subject name.
In the former method, chain of trust verification is not performed.
The CA certificate files are looked for under <spice-config-dir>/spice_truststore.pem
windows <spice-config-dir>=%APPDATA%\spicec\
linux <spice-config-dir>=$HOME/.spicec/
Diffstat (limited to 'client/red_client.h')
-rw-r--r-- | client/red_client.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/red_client.h b/client/red_client.h index a98d2d2f..7cc700eb 100644 --- a/client/red_client.h +++ b/client/red_client.h @@ -76,6 +76,7 @@ private: std::string _host; int _port; int _sport; + RedPeer::HostAuthOptions _auth_options; Thread* _thread; Mutex _lock; Condition _cond; @@ -153,6 +154,7 @@ public: Application& get_application() { return _application;} bool is_auto_display_res() { return _auto_display_res;} RedPeer::ConnectionOptions::Type get_connection_options(uint32_t channel_type); + RedPeer::HostAuthOptions& get_host_auth_options() { return _host_auth_opt;} void get_sync_info(uint8_t channel_type, uint8_t channel_id, SyncInfo& info); void wait_for_channels(int wait_list_size, RedWaitForChannel* wait_list); PixmapCache& get_pixmap_cache() {return _pixmap_cache;} @@ -222,6 +224,7 @@ private: AutoRef<AgentTimer> _agent_timer; PeerConnectionOptMap _con_opt_map; + RedPeer::HostAuthOptions _host_auth_opt; Migrate _migrate; Mutex _channels_lock; typedef std::list<ChannelFactory*> Factorys; |