diff options
Diffstat (limited to 'src/Net/Connection.h')
-rw-r--r-- | src/Net/Connection.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Net/Connection.h b/src/Net/Connection.h index 0949ec4..21e8444 100644 --- a/src/Net/Connection.h +++ b/src/Net/Connection.h @@ -98,6 +98,7 @@ class Connection { int sock; gnutls_session_t session; + gnutls_certificate_credentials_t x509_cred; IPAddress *peer; @@ -128,6 +129,8 @@ class Connection { Connection() : state(DISCONNECTED), peer(0) { transR.length = transR.transmitted = 0; transR.data = 0; + + gnutls_certificate_allocate_credentials(&x509_cred); } virtual ~Connection() { @@ -141,6 +144,8 @@ class Connection { delete [] transS.front().data; transS.pop(); } + + gnutls_certificate_free_credentials(x509_cred); } bool isConnected() const {return (state != DISCONNECTED);} |