mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Certificates
- Stores the socket in the session.
This commit is contained in:
parent
7c08ce749f
commit
1725460728
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue