diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-06 03:15:06 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-06 03:15:06 +0200 |
commit | 7d5b81e9936b1c778fd6408f3f22478e9ab9486b (patch) | |
tree | 671e3f323d7298a5a0887302d6f1a397f5e0c1cd /src/Net/ClientConnection.h | |
parent | b961ec7011bb50785dbbc271592b84f3ebae6432 (diff) | |
download | mad-7d5b81e9936b1c778fd6408f3f22478e9ab9486b.tar mad-7d5b81e9936b1c778fd6408f3f22478e9ab9486b.zip |
X.509-basierte TLS-Verbindung funktioniert
Diffstat (limited to 'src/Net/ClientConnection.h')
-rw-r--r-- | src/Net/ClientConnection.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/Net/ClientConnection.h b/src/Net/ClientConnection.h index 18b1a02..280f382 100644 --- a/src/Net/ClientConnection.h +++ b/src/Net/ClientConnection.h @@ -30,24 +30,16 @@ class IPAddress; class ClientConnection : public Connection { private: - gnutls_anon_client_credentials_t anoncred; - bool daemon; - + void connectionHeaderReceiveHandler(const void *data, unsigned long length); - + protected: virtual void connectionHeader(); - + public: - ClientConnection() : daemon(0) { - gnutls_anon_allocate_client_credentials(&anoncred); - } - - virtual ~ClientConnection() { - gnutls_anon_free_client_credentials(anoncred); - } - + ClientConnection() : daemon(0) {} + void connect(const IPAddress &address, bool daemon0 = false) throw(ConnectionException); }; |