From 169cc7b5cb56e9b21bbf7f9eb3ff49659469788a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 30 Oct 2013 00:20:38 -0400 Subject: [PATCH] Code Cleanup - Removed unused header. - Added ctor initialization. - Removed misleading comment. --- src/TLSClient.cpp | 5 +++-- src/commands/CmdSync.cpp | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TLSClient.cpp b/src/TLSClient.cpp index f42a20b51..fd1e8dba4 100644 --- a/src/TLSClient.cpp +++ b/src/TLSClient.cpp @@ -36,10 +36,9 @@ #include #include #include -#include +#include #include #include -#include #include #include #include @@ -90,6 +89,8 @@ static int verify_certificate_callback (gnutls_session_t session) //////////////////////////////////////////////////////////////////////////////// TLSClient::TLSClient () : _ca ("") +, _cert ("") +, _key ("") , _socket (0) , _limit (0) , _debug (false) diff --git a/src/commands/CmdSync.cpp b/src/commands/CmdSync.cpp index 4d7daae20..153f7d9a8 100644 --- a/src/commands/CmdSync.cpp +++ b/src/commands/CmdSync.cpp @@ -330,7 +330,6 @@ bool CmdSync::send ( try { - // A very basic TLS client, with X.509 authentication. TLSClient client; client.debug (context.config.getInteger ("debug.tls")); client.trust (trust);