mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 18:06:42 +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 <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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue