X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=apps%2Fmac.c;h=6abcfcd4e8b4d8477203ba3cdf4999c02582bab3;hb=8baa49aeac0d51504b8bcd0fd5c750c17af6fe62;hp=8383d0d7b39b83737988a619dec1bc4479a282c2;hpb=41f7ecf30dc9c1bd6988accc0aa288571a25b7bd;p=openssl.git diff --git a/apps/mac.c b/apps/mac.c index 8383d0d7b3..6abcfcd4e8 100644 --- a/apps/mac.c +++ b/apps/mac.c @@ -26,15 +26,22 @@ typedef enum OPTION_choice { const OPTIONS mac_options[] = { {OPT_HELP_STR, 1, '-', "Usage: %s [options] mac_name\n"}, - {OPT_HELP_STR, 1, '-', "mac_name\t\t MAC algorithm (See list " - "-mac-algorithms)"}, + + OPT_SECTION("General"), {"help", OPT_HELP, '-', "Display this summary"}, - {"macopt", OPT_MACOPT, 's', "MAC algorithm parameters in n:v form. " - "See 'PARAMETER NAMES' in the EVP_MAC_ docs"}, + {"macopt", OPT_MACOPT, 's', "MAC algorithm parameters in n:v form"}, + {OPT_MORE_STR, 1, '-', "See 'PARAMETER NAMES' in the EVP_MAC_ docs"}, + + OPT_SECTION("Input"), {"in", OPT_IN, '<', "Input file to MAC (default is stdin)"}, + + OPT_SECTION("Output"), {"out", OPT_OUT, '>', "Output to filename rather than stdout"}, - {"binary", OPT_BIN, '-', "Output in binary format (Default is hexadecimal " - "output)"}, + {"binary", OPT_BIN, '-', + "Output in binary format (default is hexadecimal)"}, + + OPT_PARAMETERS(), + {"mac_name", 0, 0, "MAC algorithm"}, {NULL} };