diff --git a/src/TLSClient.cpp b/src/TLSClient.cpp index b40756e32..6d8e520fb 100644 --- a/src/TLSClient.cpp +++ b/src/TLSClient.cpp @@ -225,7 +225,11 @@ void TLSClient::connect (const std::string& host, const std::string& port) if (p == NULL) throw format (STRING_CMD_SYNC_CONNECT, host, port); +#if GNUTLS_VERSION_NUMBER >= 0x030109 + gnutls_transport_set_int (_session, _socket); +#else gnutls_transport_set_ptr (_session, (gnutls_transport_ptr_t) (long) _socket); +#endif // Perform the TLS handshake int ret;