summaryrefslogtreecommitdiffstats
path: root/src/Net
diff options
context:
space:
mode:
Diffstat (limited to 'src/Net')
-rw-r--r--src/Net/Connection.h7
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();