Certificates

- Stores the socket in the session.
This commit is contained in:
Paul Beckingham 2013-10-29 23:04:12 -04:00
parent 7c08ce749f
commit 1725460728

View file

@ -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;