mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TLSClient: Added handshake timeout
This commit is contained in:
parent
41234c4f97
commit
304a6f7a33
1 changed files with 4 additions and 0 deletions
|
@ -233,6 +233,10 @@ 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 >= 0x030100
|
||||
gnutls_handshake_set_timeout (_session, GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT); // 3.1.0
|
||||
#endif
|
||||
|
||||
#if GNUTLS_VERSION_NUMBER >= 0x030109
|
||||
gnutls_transport_set_int (_session, _socket); // 3.1.9
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue