From bca04c1b00fb6c6fdc87958d1531fe199cfa8a78 Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Wed, 25 May 2022 09:41:08 +0100 Subject: [PATCH] Improved documentation for xe.exe. Add the deprecated alongside the new check ID. Signed-off-by: Konstantina Chremmou --- CommandLib/export.cs | 3 +++ xe/Logger.cs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CommandLib/export.cs b/CommandLib/export.cs index ca059aa2e..759cbed30 100644 --- a/CommandLib/export.cs +++ b/CommandLib/export.cs @@ -66,6 +66,9 @@ namespace CommandLib [System.Diagnostics.CodeAnalysis.SuppressMessage("csharpsquid", "S4790:Using weak hashing algorithms is security-sensitive", Justification = "Used only for checksum verification for backwards compatibility.")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("csharpsquid", + "S2070:SHA-1 and Message-Digest hash algorithms should not be used in secure contexts", + Justification = "Used only for checksum verification for backwards compatibility.")] private readonly SHA1 _sha1 = new SHA1CryptoServiceProvider(); private readonly XXHash64 _xxHash = new XXHash64(); diff --git a/xe/Logger.cs b/xe/Logger.cs index 82efd943a..78abfe558 100644 --- a/xe/Logger.cs +++ b/xe/Logger.cs @@ -46,7 +46,9 @@ namespace ThinCLI sb.AppendLine(" xe -s -u -pw [options] ").AppendLine(); sb.AppendLine("Options:"); sb.AppendLine(" -p "); - sb.AppendLine(" -debug"); + sb.AppendLine(" -debug Show more detailed output and debug information"); + sb.AppendLine(" -no-warn-new-certificates Do not prompt if a new certificate has been detected"); + sb.AppendLine(" -no-warn-certificates Do not prompt if a certificate has changed"); sb.AppendLine(); sb.AppendLine("For command help, use xe -s -u -pw [options] help");