From 25fad2ece854afe582b3c37913993fcaf19ca26a Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Tue, 18 May 2021 11:30:01 +0200 Subject: apps/list: Remove obsolete -missing-help option Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/15329) --- apps/list.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'apps') diff --git a/apps/list.c b/apps/list.c index 37e363ebd1..b0a1b6a0c5 100644 --- a/apps/list.c +++ b/apps/list.c @@ -964,25 +964,6 @@ static void list_keyexchanges(void) BIO_printf(bio_out, " -\n"); } -static void list_missing_help(void) -{ - const FUNCTION *fp; - const OPTIONS *o; - - for (fp = functions; fp->name != NULL; fp++) { - if ((o = fp->help) != NULL) { - /* If there is help, list what flags are not documented. */ - for ( ; o->name != NULL; o++) { - if (o->helpstr == NULL) - BIO_printf(bio_out, "%s %s\n", fp->name, o->name); - } - } else if (fp->func != dgst_main) { - /* If not aliased to the dgst command, */ - BIO_printf(bio_out, "%s *\n", fp->name); - } - } -} - static void list_objects(void) { int max_nid = OBJ_new_nid(0); @@ -1443,7 +1424,7 @@ typedef enum HELPLIST_CHOICE { OPT_ENCODERS, OPT_DECODERS, OPT_KEYMANAGERS, OPT_KEYEXCHANGE_ALGORITHMS, OPT_KEM_ALGORITHMS, OPT_SIGNATURE_ALGORITHMS, OPT_ASYM_CIPHER_ALGORITHMS, OPT_PROVIDER_INFO, - OPT_MISSING_HELP, OPT_OBJECTS, OPT_SELECT_NAME, + OPT_OBJECTS, OPT_SELECT_NAME, #ifndef OPENSSL_NO_DEPRECATED_3_0 OPT_ENGINES, #endif @@ -1503,8 +1484,6 @@ const OPTIONS list_options[] = { "List of loaded engines"}, #endif {"disabled", OPT_DISABLED, '-', "List of disabled features"}, - {"missing-help", OPT_MISSING_HELP, '-', - "List missing detailed help strings"}, {"options", OPT_OPTIONS, 's', "List options for specified command"}, {"objects", OPT_OBJECTS, '-', @@ -1543,7 +1522,6 @@ int list_main(int argc, char **argv) unsigned int engines:1; #endif unsigned int disabled:1; - unsigned int missing_help:1; unsigned int objects:1; unsigned int options:1; } todo = { 0, }; @@ -1629,9 +1607,6 @@ opthelp: case OPT_DISABLED: todo.disabled = 1; break; - case OPT_MISSING_HELP: - todo.missing_help = 1; - break; case OPT_OBJECTS: todo.objects = 1; break; @@ -1700,8 +1675,6 @@ opthelp: #endif if (todo.disabled) list_disabled(); - if (todo.missing_help) - list_missing_help(); if (todo.objects) list_objects(); -- cgit v1.2.3