From 1bbee9cde06c9fd606779d57d3718f21c25f6923 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 25 Nov 2013 16:10:21 -0500 Subject: [PATCH] Diagnostics - Added more info to the sync configuration details. --- src/commands/CmdDiagnostics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/CmdDiagnostics.cpp b/src/commands/CmdDiagnostics.cpp index e9e4cb0b6..ab3e4ae1a 100644 --- a/src/commands/CmdDiagnostics.cpp +++ b/src/commands/CmdDiagnostics.cpp @@ -225,6 +225,8 @@ int CmdDiagnostics::execute (std::string& output) if (context.config.get ("taskd.ca") != "") out << " CA: " << context.config.get ("taskd.ca") + << (File (context.config.get ("taskd.ca")).readable () + ? " (readable)" : " (not readable)") << "\n"; if (context.config.get ("taskd.trust") != "") @@ -232,10 +234,14 @@ int CmdDiagnostics::execute (std::string& output) out << " Cert: " << context.config.get ("taskd.certificate") + << (File (context.config.get ("taskd.certificate")).readable () + ? " (readable)" : " (not readable)") << "\n"; out << " Key: " << context.config.get ("taskd.key") + << (File (context.config.get ("taskd.key")).readable () + ? " (readable)" : " (not readable)") << "\n"; out << " Ciphers: "