aboutsummaryrefslogtreecommitdiff
path: root/apps/sess_id.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2019-11-08 06:08:30 +1000
committerPauli <paul.dale@oracle.com>2019-11-08 06:08:30 +1000
commit5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc (patch)
treebda368ec4d8855ac5d3e2a31648769a5dabfaac9 /apps/sess_id.c
parentab14d2af5386897eba8307c9f3220a6d775c0898 (diff)
downloadopenssl-5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc.zip
openssl-5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc.tar.gz
openssl-5388f9862d9aaf3c7cf7a70c1e36e7e983c26cfc.tar.bz2
Add "sections" to -help output
Remove "Valid options" label, since all commands have sections (and [almost] always the first one is "General options"). Have "list --options" ignore section headers Reformat ts's additional help Add output section Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9953)
Diffstat (limited to 'apps/sess_id.c')
-rw-r--r--apps/sess_id.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/sess_id.c b/apps/sess_id.c
index d8e1827..5183ea9 100644
--- a/apps/sess_id.c
+++ b/apps/sess_id.c
@@ -25,16 +25,21 @@ typedef enum OPTION_choice {
} OPTION_CHOICE;
const OPTIONS sess_id_options[] = {
+ OPT_SECTION("General"),
{"help", OPT_HELP, '-', "Display this summary"},
+ {"context", OPT_CONTEXT, 's', "Set the session ID context"},
+
+ OPT_SECTION("Input"),
+ {"in", OPT_IN, 's', "Input file - default stdin"},
{"inform", OPT_INFORM, 'F', "Input format - default PEM (DER or PEM)"},
+
+ OPT_SECTION("Output"),
+ {"out", OPT_OUT, '>', "Output file - default stdout"},
{"outform", OPT_OUTFORM, 'f',
"Output format - default PEM (PEM, DER or NSS)"},
- {"in", OPT_IN, 's', "Input file - default stdin"},
- {"out", OPT_OUT, '>', "Output file - default stdout"},
{"text", OPT_TEXT, '-', "Print ssl session id details"},
{"cert", OPT_CERT, '-', "Output certificate "},
{"noout", OPT_NOOUT, '-', "Don't output the encoded session info"},
- {"context", OPT_CONTEXT, 's', "Set the session ID context"},
{NULL}
};