From fbe26b0e48e6f3714900833174fcf42196e86fc8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 15 Sep 2008 02:19:06 +0200 Subject: Identifikationsinformationen im ConnectionManager speichern --- src/Net/Connection.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/Net/Connection.h') diff --git a/src/Net/Connection.h b/src/Net/Connection.h index 953ccc8..77b8cc4 100644 --- a/src/Net/Connection.h +++ b/src/Net/Connection.h @@ -56,9 +56,6 @@ class Connection { sigc::signal signal; - bool authenticated; - std::string name; - void doHandshake(); void packetHeaderReceiveHandler(const void *data, unsigned long length); @@ -99,6 +96,7 @@ class Connection { gnutls_certificate_credentials_t x509_cred; IPAddress *peer; + bool authenticated, identified; void handshake(); @@ -110,7 +108,7 @@ class Connection { bool enterReceiveLoop(); public: - Connection() : state(DISCONNECTED), authenticated(false), peer(0) { + Connection() : state(DISCONNECTED), peer(0), authenticated(false), identified(false) { transR.length = transR.transmitted = 0; transR.data = 0; @@ -131,6 +129,9 @@ class Connection { bool isAuthenticated() const {return authenticated;} void setAuthenticated() {authenticated = true;} + bool isIdentified() const {return identified;} + void setIdentified() {identified = true;} + const gnutls_datum_t* getCertificate() { return gnutls_certificate_get_ours(session); } @@ -155,9 +156,6 @@ class Connection { sigc::signal signalReceive() const {return signal;} - std::string getName() const {return name;} - void setName(const std::string& name0) {name = name0;} - static void init() { gnutls_global_init(); } -- cgit v1.2.3