From 00a7b377cca0ad378574182d734cc29769cadec8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 19 Dec 2016 11:59:24 -0500 Subject: [PATCH] TLSClient: Corrected version number for API call --- src/TLSClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TLSClient.cpp b/src/TLSClient.cpp index d9ac9d3b7..ef29f7b9c 100644 --- a/src/TLSClient.cpp +++ b/src/TLSClient.cpp @@ -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)