mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 04:00:37 +02:00
TLS
- When an invalid value for 'taskd.trust' is noticed, the 'sync' command will error out, and the 'diag' command will refer the user to the man page. This is because the allowed values were 'yes'/'no', and now are 'strict'/'ignore hostname'/'allow all'.
This commit is contained in:
parent
dcc5dbf16a
commit
fe46dadeee
9 changed files with 22 additions and 7 deletions
|
@ -272,12 +272,13 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
? " (readable)" : " (not readable)")
|
||||
<< "\n";
|
||||
|
||||
if (context.config.get ("taskd.trust") == "allow all")
|
||||
out << " Trust: allow all\n";
|
||||
else if (context.config.get ("taskd.trust") == "ignore hostname")
|
||||
out << " Trust: ignore hostanme\n";
|
||||
std::string trust_value = context.config.get ("taskd.trust");
|
||||
if (trust_value == "strict" ||
|
||||
trust_value == "ignore hostname" ||
|
||||
trust_value == "allow all")
|
||||
out << " Trust: " << trust_value << "\n";
|
||||
else
|
||||
out << " Trust: strict\n";
|
||||
out << " Trust: Bad value - see 'man taskrc'\n";
|
||||
|
||||
out << "Certificate: "
|
||||
<< context.config.get ("taskd.certificate")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue