Certificates
- Stores the socket in the session.
This commit is contained in:
@@ -225,7 +225,11 @@ void TLSClient::connect (const std::string& host, const std::string& port)
|
|||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
throw format (STRING_CMD_SYNC_CONNECT, host, port);
|
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);
|
gnutls_transport_set_ptr (_session, (gnutls_transport_ptr_t) (long) _socket);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Perform the TLS handshake
|
// Perform the TLS handshake
|
||||||
int ret;
|
int ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user