From 325d0d1738599bb1bad6774c4c24a793983f2538 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 5 Apr 2014 10:37:53 -0400 Subject: [PATCH] Documentation - Mentioned the hostname verification. --- ChangeLog | 5 +++-- src/TLSClient.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8f9f1c50d..3837ff8ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,12 +41,13 @@ Bugs (thanks to Marton Suranyi). - #1508 Show command highlight configuration (thanks to Nicolas Appriou). - #1503 build failure with musl libc due to undefined GLOB_BRACE and GLOB_TILDE - (thanks to Natanael Copa) + (thanks to Natanael Copa). - #1473 Make TASK_RCDIR customizable (thanks to Elias Probst). - #1486 Truncated sentence in task-sync(5) manpage (thanks to Jakub Wilk). - #1487 `tasksh` segmentation fault (thanks to Hector Arciga). - Added certificate verification to GnuTLS versions < 2.9.10 (thanks to Alexander - Sulfrian) + Sulfrian). +- Added certificate hostname verification (thanks to Alexander Sulfrian). - Removed debugging code. ------ current release --------------------------- diff --git a/src/TLSClient.cpp b/src/TLSClient.cpp index f3ef90942..9d06b09aa 100644 --- a/src/TLSClient.cpp +++ b/src/TLSClient.cpp @@ -311,7 +311,7 @@ int TLSClient::verify_certificate () const cert_list = gnutls_certificate_get_peers (_session, &cert_list_size); if (cert_list_size == 0) - return GNUTLS_E_CERTIFICATE_ERROR; + return GNUTLS_E_CERTIFICATE_ERROR; ret = gnutls_x509_crt_init (&cert); if (ret < 0)