Code Cleanup

- Removed unused header.
- Added ctor initialization.
- Removed misleading comment.
This commit is contained in:
Paul Beckingham 2013-10-30 00:20:38 -04:00
parent cf051ba174
commit 169cc7b5cb
2 changed files with 3 additions and 3 deletions

View file

@ -36,10 +36,9 @@
#include <string.h> #include <string.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <errno.h> #include <sys/errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <netdb.h> #include <netdb.h>
#include <File.h>
#include <TLSClient.h> #include <TLSClient.h>
#include <text.h> #include <text.h>
#include <i18n.h> #include <i18n.h>
@ -90,6 +89,8 @@ static int verify_certificate_callback (gnutls_session_t session)
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
TLSClient::TLSClient () TLSClient::TLSClient ()
: _ca ("") : _ca ("")
, _cert ("")
, _key ("")
, _socket (0) , _socket (0)
, _limit (0) , _limit (0)
, _debug (false) , _debug (false)

View file

@ -330,7 +330,6 @@ bool CmdSync::send (
try try
{ {
// A very basic TLS client, with X.509 authentication.
TLSClient client; TLSClient client;
client.debug (context.config.getInteger ("debug.tls")); client.debug (context.config.getInteger ("debug.tls"));
client.trust (trust); client.trust (trust);