mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TLS
- Connected code paths to use CA or trust.
This commit is contained in:
parent
f1f93aa5d5
commit
7fa3f71575
3 changed files with 7 additions and 8 deletions
|
@ -344,11 +344,8 @@ bool CmdSync::send (
|
|||
TLSClient client;
|
||||
client.debug (context.config.getInteger ("debug.tls"));
|
||||
|
||||
// TODO Either use 'ca' or 'trust', but not both.
|
||||
if (trust && ca == "")
|
||||
client.trust (trust);
|
||||
|
||||
client.init (certificate, key);
|
||||
client.trust (trust);
|
||||
client.init (ca, certificate, key);
|
||||
client.connect (server, port);
|
||||
client.send (request.serialize () + "\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue