aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/tls_utils.cpp
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2017-08-28 22:45:11 +0200
committerRenĂ© Korthaus <[email protected]>2018-01-04 18:18:22 +0100
commit5fb1cdfb5d7c6f854102ce33f8c7cad2a3b27153 (patch)
treea643600981c025985599c1a0ee13f1a516a9731e /src/cli/tls_utils.cpp
parent5ac3d723d1be27098bc3a18204a07a5972a0e283 (diff)
Print a command description for cli help
Diffstat (limited to 'src/cli/tls_utils.cpp')
-rw-r--r--src/cli/tls_utils.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cli/tls_utils.cpp b/src/cli/tls_utils.cpp
index 7b2474a69..cc5a8549c 100644
--- a/src/cli/tls_utils.cpp
+++ b/src/cli/tls_utils.cpp
@@ -88,6 +88,16 @@ class TLS_Ciphersuites final : public Command
}
}
+ std::string group() const override
+ {
+ return "tls";
+ }
+
+ std::string description() const override
+ {
+ return "Lists all ciphersuites for a policy and TLS version";
+ }
+
void go() override
{
const std::string policy_type = get_arg("policy");
@@ -134,6 +144,16 @@ class TLS_Client_Hello_Reader final : public Command
TLS_Client_Hello_Reader()
: Command("tls_client_hello --hex input") {}
+ std::string group() const override
+ {
+ return "tls";
+ }
+
+ std::string description() const override
+ {
+ return "Parse a TLS client hello message";
+ }
+
void go() override
{
const std::string input_file = get_arg("input");