mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 15:47:19 +02:00
TLSClient: Corrected version number for API call
This commit is contained in:
parent
efdf0ca4dd
commit
00a7b377cc
1 changed files with 2 additions and 2 deletions
|
@ -253,10 +253,10 @@ void TLSClient::connect (const std::string& host, const std::string& port)
|
|||
if (ret < 0)
|
||||
throw format (STRING_CMD_SYNC_HANDSHAKE, gnutls_strerror (ret));
|
||||
|
||||
#if GNUTLS_VERSION_NUMBER < 0x02090a
|
||||
#if GNUTLS_VERSION_NUMBER < 0x020a00
|
||||
// The automatic verification for the server certificate with
|
||||
// gnutls_certificate_set_verify_function does only work with gnutls
|
||||
// >=2.9.10. So with older versions we should call the verify function
|
||||
// >=2.10.0. So with older versions we should call the verify function
|
||||
// manually after the gnutls handshake.
|
||||
ret = verify_certificate ();
|
||||
if (ret < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue