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_channel.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_channel.h')
-rw-r--r-- | client/red_channel.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/red_channel.h b/client/red_channel.h index c2f94bd7..996aaf66 100644 --- a/client/red_channel.h +++ b/client/red_channel.h @@ -55,14 +55,14 @@ public: uint8_t get_type() { return _type;} uint8_t get_id() { return _id;} - void connect(const ConnectionOptions& options, uint32_t connection_id, uint32_t ip, - std::string password); void connect(const ConnectionOptions& options, uint32_t connection_id, const char *host, std::string password); const ChannelCaps& get_common_caps() { return _common_caps;} const ChannelCaps& get_caps() {return _caps;} + uint32_t get_peer_minor() { return _remote_minor;} + protected: void set_common_capability(uint32_t cap); void set_capability(uint32_t cap); @@ -83,6 +83,8 @@ private: ChannelCaps _remote_common_caps; ChannelCaps _remote_caps; + + uint32_t _remote_minor; }; class SendTrigger: public EventSources::Trigger { |