summaryrefslogtreecommitdiffstats
path: root/apps/list.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2020-01-16 19:40:52 +0100
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2020-01-29 18:42:31 +0100
commit65718c516ec69ff2314d12c7ce57b242ccc3021d (patch)
tree31f951969e00d21b15659576b2dbb92f11cf76f4 /apps/list.c
parentAdd more generated man1 doc files (diff)
downloadopenssl-65718c516ec69ff2314d12c7ce57b242ccc3021d.tar.xz
openssl-65718c516ec69ff2314d12c7ce57b242ccc3021d.zip
Document most missing options
Add cmd-nits make target. Listing options should stop when it hits the "parameters" separator. Add missing .pod.in files to doc/man1/build.info Tweak find-doc-nits to try openssl-XXX before XXX for POD files and change an error messavge to be more useful. Fix the following pages: ca, cms, crl, dgst, enc, engine, errstr, gendsa, genrsa, list, ocsp, passwd, pkcs7, pkcs12, rand, rehash, req, rsautil, s_server, speed, s_time, sess_id, smime, srp, ts, x509. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/10873)
Diffstat (limited to 'apps/list.c')
-rw-r--r--apps/list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/list.c b/apps/list.c
index a5382ac24f..ed6f1c71ac 100644
--- a/apps/list.c
+++ b/apps/list.c
@@ -364,10 +364,12 @@ static void list_options_for_command(const char *command)
for ( ; o->name != NULL; o++) {
char c = o->valtype;
+ if (o->name == OPT_PARAM_STR)
+ break;
+
if (o->name == OPT_HELP_STR
|| o->name == OPT_MORE_STR
|| o->name == OPT_SECTION_STR
- || o->name == OPT_PARAM_STR
|| o->name[0] == '\0')
continue;
BIO_printf(bio_out, "%s %c\n", o->name, c == '\0' ? '-' : c);