Commit 44c83ebd authored by FdaSilvaYY's avatar FdaSilvaYY
Browse files

Constify command options

parent 83bd048e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ typedef enum OPTION_choice {
    OPT_ITEM
} OPTION_CHOICE;

OPTIONS asn1parse_options[] = {
const OPTIONS asn1parse_options[] = {
    {"help", OPT_HELP, '-', "Display this summary"},
    {"inform", OPT_INFORM, 'F', "input format - one of DER PEM"},
    {"in", OPT_IN, '<', "input file"},
+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ typedef enum OPTION_choice {
    OPT_CRL_REASON, OPT_CRL_HOLD, OPT_CRL_COMPROMISE, OPT_CRL_CA_COMPROMISE
} OPTION_CHOICE;

OPTIONS ca_options[] = {
const OPTIONS ca_options[] = {
    {"help", OPT_HELP, '-', "Display this summary"},
    {"verbose", OPT_VERBOSE, '-', "Verbose output during processing"},
    {"config", OPT_CONFIG, 's', "A config file"},
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ typedef enum OPTION_choice {
    OPT_V, OPT_UPPER_V, OPT_S
} OPTION_CHOICE;

OPTIONS ciphers_options[] = {
const OPTIONS ciphers_options[] = {
    {"help", OPT_HELP, '-', "Display this summary"},
    {"v", OPT_V, '-', "Verbose listing of the SSL/TLS ciphers"},
    {"V", OPT_UPPER_V, '-', "Even more verbose"},
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ typedef enum OPTION_choice {
    OPT_CIPHER
} OPTION_CHOICE;

OPTIONS cms_options[] = {
const OPTIONS cms_options[] = {
    {OPT_HELP_STR, 1, '-', "Usage: %s [options] cert.pem...\n"},
    {OPT_HELP_STR, 1, '-',
        "  cert.pem... recipient certs for encryption\n"},
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ typedef enum OPTION_choice {
    OPT_NOOUT, OPT_NAMEOPT, OPT_MD
} OPTION_CHOICE;

OPTIONS crl_options[] = {
const OPTIONS crl_options[] = {
    {"help", OPT_HELP, '-', "Display this summary"},
    {"inform", OPT_INFORM, 'F', "Input format; default PEM"},
    {"in", OPT_IN, '<', "Input file - default stdin"},
Loading