From 7d5b81e9936b1c778fd6408f3f22478e9ab9486b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 6 Sep 2008 03:15:06 +0200 Subject: X.509-basierte TLS-Verbindung funktioniert --- src/Net/ClientConnection.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'src/Net/ClientConnection.h') 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); }; -- cgit v1.2.3