From 7d07d81d2b19bb7bc352ce27a34b47972b93c73d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 21 Mar 2009 17:44:56 +0100 Subject: Net::Connection etwas aufger?umt --- src/Net/Connection.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Net/Connection.h b/src/Net/Connection.h index 695fbb8..1c15a95 100644 --- a/src/Net/Connection.h +++ b/src/Net/Connection.h @@ -127,17 +127,16 @@ class Connection { return (state == DISCONNECT || state == BYE); } - const gnutls_datum_t* getCertificate() { + const gnutls_datum_t* getCertificate() const { return gnutls_certificate_get_ours(session); } - const gnutls_datum_t* getPeerCertificate() { + const gnutls_datum_t* getPeerCertificate() const { unsigned int n; return gnutls_certificate_get_peers(session, &n); } - const IPAddress* getPeer() {return peer;} - int getSocket() const {return sock;} + const IPAddress* getPeer() const {return peer;} void disconnect(); -- cgit v1.2.3