diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-02-22 16:59:10 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-02-22 16:59:10 +0100 |
commit | bb1b015103f88f9165fee7254287355d867b96ad (patch) | |
tree | 819721aba945accfbd37bc590c96e13503cce2d1 | |
parent | e42684ac39a7ff122ed00d25867a045349a8f9f7 (diff) |
Make m_ssl_gnutls work with at least GnuTLS v2.8
-rw-r--r-- | modules/extra/m_ssl_gnutls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/extra/m_ssl_gnutls.cpp b/modules/extra/m_ssl_gnutls.cpp index 002015f5f..a96a8c40d 100644 --- a/modules/extra/m_ssl_gnutls.cpp +++ b/modules/extra/m_ssl_gnutls.cpp @@ -349,7 +349,7 @@ ClientSocket *SSLSocketIO::Accept(ListenSocket *s) throw SocketException("Unable to initialize SSL socket"); me->cred.SetupSession(io->sess); - gnutls_transport_set_int(io->sess, newsock); + gnutls_transport_set_ptr(io->sess, reinterpret_cast<gnutls_transport_ptr_t>(newsock)); newsocket->flags[SF_ACCEPTING] = true; this->FinishAccept(newsocket); @@ -453,7 +453,7 @@ SocketFlag SSLSocketIO::FinishConnect(ConnectionSocket *s) if (gnutls_init(&io->sess, GNUTLS_CLIENT) != GNUTLS_E_SUCCESS) throw SocketException("Unable to initialize SSL socket"); me->cred.SetupSession(io->sess); - gnutls_transport_set_int(io->sess, s->GetFD()); + gnutls_transport_set_ptr(io->sess, reinterpret_cast<gnutls_transport_ptr_t>(s->GetFD())); } int ret = gnutls_handshake(io->sess); |