mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Removed unused header. - Added ctor initialization. - Removed misleading comment.
This commit is contained in:
parent
cf051ba174
commit
169cc7b5cb
2 changed files with 3 additions and 3 deletions
|
@ -36,10 +36,9 @@
|
|||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <netdb.h>
|
||||
#include <File.h>
|
||||
#include <TLSClient.h>
|
||||
#include <text.h>
|
||||
#include <i18n.h>
|
||||
|
@ -90,6 +89,8 @@ static int verify_certificate_callback (gnutls_session_t session)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
TLSClient::TLSClient ()
|
||||
: _ca ("")
|
||||
, _cert ("")
|
||||
, _key ("")
|
||||
, _socket (0)
|
||||
, _limit (0)
|
||||
, _debug (false)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue