diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-03-21 17:44:56 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-03-21 17:44:56 +0100 |
commit | 7d07d81d2b19bb7bc352ce27a34b47972b93c73d (patch) | |
tree | 3a9a31d66201fc0213c1e4355cf6b730c7d5fdda /src/Net | |
parent | c07b837dbad1ac176a6c18062dab9184e7080309 (diff) | |
download | mad-7d07d81d2b19bb7bc352ce27a34b47972b93c73d.tar mad-7d07d81d2b19bb7bc352ce27a34b47972b93c73d.zip |
Net::Connection etwas aufger?umt
Diffstat (limited to 'src/Net')
-rw-r--r-- | src/Net/Connection.h | 7 |
1 files changed, 3 insertions, 4 deletions
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(); |