[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Fri Oct 14 17:17:46 UTC 2016


The branch master has been updated
       via  05c16493c9fb445a1ccec947de903586503d776c (commit)
       via  44c83ebd7089825a82545c9cacc4c4e2de81d001 (commit)
      from  83bd048e9dbe5f376b2feaa7f0a6db6d98ef3a47 (commit)


- Log -----------------------------------------------------------------
commit 05c16493c9fb445a1ccec947de903586503d776c
Author: FdaSilvaYY <fdasilvayy at gmail.com>
Date:   Fri Oct 14 18:25:14 2016 +0200

    Fix style issue
    
    Reviewed-by: Kurt Roeckx <kurt at openssl.org>
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/1694)

commit 44c83ebd7089825a82545c9cacc4c4e2de81d001
Author: FdaSilvaYY <fdasilvayy at gmail.com>
Date:   Sun Mar 13 14:07:50 2016 +0100

    Constify command options
    
    Reviewed-by: Kurt Roeckx <kurt at openssl.org>
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/1694)

-----------------------------------------------------------------------

Summary of changes:
 apps/asn1pars.c  |   2 +-
 apps/ca.c        |   2 +-
 apps/ciphers.c   |   2 +-
 apps/cms.c       |   2 +-
 apps/crl.c       |   2 +-
 apps/crl2p7.c    |   2 +-
 apps/dgst.c      |   2 +-
 apps/dhparam.c   |   2 +-
 apps/dsa.c       |   2 +-
 apps/dsaparam.c  |   2 +-
 apps/ec.c        |   2 +-
 apps/ecparam.c   |   2 +-
 apps/enc.c       |   2 +-
 apps/engine.c    |   2 +-
 apps/errstr.c    |   2 +-
 apps/gendsa.c    |   2 +-
 apps/genpkey.c   |   2 +-
 apps/genrsa.c    |   2 +-
 apps/nseq.c      |   2 +-
 apps/ocsp.c      |   2 +-
 apps/openssl.c   |   6 +-
 apps/passwd.c    |   2 +-
 apps/pkcs12.c    |   2 +-
 apps/pkcs7.c     |   2 +-
 apps/pkcs8.c     |   2 +-
 apps/pkey.c      |   2 +-
 apps/pkeyparam.c |   2 +-
 apps/pkeyutl.c   |   2 +-
 apps/prime.c     |   2 +-
 apps/progs.h     | 350 +++++++++++++++++++++++++++----------------------------
 apps/progs.pl    |   8 +-
 apps/rand.c      |   2 +-
 apps/rehash.c    |   4 +-
 apps/req.c       |   2 +-
 apps/rsa.c       |   2 +-
 apps/rsautl.c    |   2 +-
 apps/s_client.c  |   2 +-
 apps/s_server.c  |   2 +-
 apps/s_time.c    |   2 +-
 apps/sess_id.c   |   2 +-
 apps/smime.c     |   2 +-
 apps/speed.c     |   2 +-
 apps/spkac.c     |   2 +-
 apps/srp.c       |   2 +-
 apps/ts.c        |   2 +-
 apps/verify.c    |   2 +-
 apps/version.c   |   2 +-
 apps/x509.c      |   2 +-
 48 files changed, 228 insertions(+), 228 deletions(-)

diff --git a/apps/asn1pars.c b/apps/asn1pars.c
index 0bc48e3..c4b2038 100644
--- a/apps/asn1pars.c
+++ b/apps/asn1pars.c
@@ -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"},
diff --git a/apps/ca.c b/apps/ca.c
index ecd628f..39de2db 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -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"},
diff --git a/apps/ciphers.c b/apps/ciphers.c
index c0f43ea..7b99757 100644
--- a/apps/ciphers.c
+++ b/apps/ciphers.c
@@ -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"},
diff --git a/apps/cms.c b/apps/cms.c
index 21f0961..306e159 100644
--- a/apps/cms.c
+++ b/apps/cms.c
@@ -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"},
diff --git a/apps/crl.c b/apps/crl.c
index 06b6e5b..3847faa 100644
--- a/apps/crl.c
+++ b/apps/crl.c
@@ -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"},
diff --git a/apps/crl2p7.c b/apps/crl2p7.c
index 9c5f79f..cb2461e 100644
--- a/apps/crl2p7.c
+++ b/apps/crl2p7.c
@@ -25,7 +25,7 @@ typedef enum OPTION_choice {
     OPT_INFORM, OPT_OUTFORM, OPT_IN, OPT_OUT, OPT_NOCRL, OPT_CERTFILE
 } OPTION_CHOICE;
 
-OPTIONS crl2pkcs7_options[] = {
+const OPTIONS crl2pkcs7_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'F', "Input format - DER or PEM"},
     {"outform", OPT_OUTFORM, 'F', "Output format - DER or PEM"},
diff --git a/apps/dgst.c b/apps/dgst.c
index b10b93e..2fb5a75 100644
--- a/apps/dgst.c
+++ b/apps/dgst.c
@@ -36,7 +36,7 @@ typedef enum OPTION_choice {
     OPT_DIGEST
 } OPTION_CHOICE;
 
-OPTIONS dgst_options[] = {
+const OPTIONS dgst_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [options] [file...]\n"},
     {OPT_HELP_STR, 1, '-',
         "  file... files to digest (default is stdin)\n"},
diff --git a/apps/dhparam.c b/apps/dhparam.c
index ab2e787..302be2d 100644
--- a/apps/dhparam.c
+++ b/apps/dhparam.c
@@ -39,7 +39,7 @@ typedef enum OPTION_choice {
     OPT_RAND, OPT_DSAPARAM, OPT_C, OPT_2, OPT_5
 } OPTION_CHOICE;
 
-OPTIONS dhparam_options[] = {
+const OPTIONS dhparam_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [flags] [numbits]\n"},
     {OPT_HELP_STR, 1, '-', "Valid options are:\n"},
     {"help", OPT_HELP, '-', "Display this summary"},
diff --git a/apps/dsa.c b/apps/dsa.c
index 6aef502..f608d7d 100644
--- a/apps/dsa.c
+++ b/apps/dsa.c
@@ -34,7 +34,7 @@ typedef enum OPTION_choice {
     OPT_PUBOUT, OPT_CIPHER, OPT_PASSIN, OPT_PASSOUT
 } OPTION_CHOICE;
 
-OPTIONS dsa_options[] = {
+const OPTIONS dsa_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'f', "Input format, DER PEM PVK"},
     {"outform", OPT_OUTFORM, 'F', "Output format, DER PEM PVK"},
diff --git a/apps/dsaparam.c b/apps/dsaparam.c
index 4042660..027597b 100644
--- a/apps/dsaparam.c
+++ b/apps/dsaparam.c
@@ -44,7 +44,7 @@ typedef enum OPTION_choice {
     OPT_TIMEBOMB
 } OPTION_CHOICE;
 
-OPTIONS dsaparam_options[] = {
+const OPTIONS dsaparam_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'F', "Input format - DER or PEM"},
     {"in", OPT_IN, '<', "Input file"},
diff --git a/apps/ec.c b/apps/ec.c
index 007bf0a..368d226 100644
--- a/apps/ec.c
+++ b/apps/ec.c
@@ -42,7 +42,7 @@ typedef enum OPTION_choice {
     OPT_NO_PUBLIC, OPT_CHECK
 } OPTION_CHOICE;
 
-OPTIONS ec_options[] = {
+const OPTIONS ec_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"in", OPT_IN, 's', "Input file"},
     {"inform", OPT_INFORM, 'f', "Input format - DER or PEM"},
diff --git a/apps/ecparam.c b/apps/ecparam.c
index 4e6cf22..d1dcf1d 100644
--- a/apps/ecparam.c
+++ b/apps/ecparam.c
@@ -45,7 +45,7 @@ typedef enum OPTION_choice {
     OPT_CONV_FORM, OPT_PARAM_ENC, OPT_GENKEY, OPT_RAND, OPT_ENGINE
 } OPTION_CHOICE;
 
-OPTIONS ecparam_options[] = {
+const OPTIONS ecparam_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'F', "Input format - default PEM (DER or PEM)"},
     {"outform", OPT_OUTFORM, 'F', "Output format - default PEM"},
diff --git a/apps/enc.c b/apps/enc.c
index 10ab15a..33edd6c 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -41,7 +41,7 @@ typedef enum OPTION_choice {
     OPT_UPPER_S, OPT_IV, OPT_MD, OPT_CIPHER
 } OPTION_CHOICE;
 
-OPTIONS enc_options[] = {
+const OPTIONS enc_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"ciphers", OPT_LIST, '-', "List ciphers"},
     {"in", OPT_IN, '<', "Input file"},
diff --git a/apps/engine.c b/apps/engine.c
index ffd3137..da1d918 100644
--- a/apps/engine.c
+++ b/apps/engine.c
@@ -26,7 +26,7 @@ typedef enum OPTION_choice {
     OPT_V = 100, OPT_VV, OPT_VVV, OPT_VVVV
 } OPTION_CHOICE;
 
-OPTIONS engine_options[] = {
+const OPTIONS engine_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [options] engine...\n"},
     {OPT_HELP_STR, 1, '-',
         "  engine... Engines to load\n"},
diff --git a/apps/errstr.c b/apps/errstr.c
index 5fda799..6bbbe2f 100644
--- a/apps/errstr.c
+++ b/apps/errstr.c
@@ -20,7 +20,7 @@ typedef enum OPTION_choice {
     OPT_ERR = -1, OPT_EOF = 0, OPT_HELP
 } OPTION_CHOICE;
 
-OPTIONS errstr_options[] = {
+const OPTIONS errstr_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [options] errnum...\n"},
     {OPT_HELP_STR, 1, '-', "  errnum  Error number\n"},
     {"help", OPT_HELP, '-', "Display this summary"},
diff --git a/apps/gendsa.c b/apps/gendsa.c
index 4c05493..272cbb1 100644
--- a/apps/gendsa.c
+++ b/apps/gendsa.c
@@ -29,7 +29,7 @@ typedef enum OPTION_choice {
     OPT_OUT, OPT_PASSOUT, OPT_ENGINE, OPT_RAND, OPT_CIPHER
 } OPTION_CHOICE;
 
-OPTIONS gendsa_options[] = {
+const OPTIONS gendsa_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [args] dsaparam-file\n"},
     {OPT_HELP_STR, 1, '-', "Valid options are:\n"},
     {"help", OPT_HELP, '-', "Display this summary"},
diff --git a/apps/genpkey.c b/apps/genpkey.c
index 7abb3e6..93e15d8 100644
--- a/apps/genpkey.c
+++ b/apps/genpkey.c
@@ -26,7 +26,7 @@ typedef enum OPTION_choice {
     OPT_ALGORITHM, OPT_PKEYOPT, OPT_GENPARAM, OPT_TEXT, OPT_CIPHER
 } OPTION_CHOICE;
 
-OPTIONS genpkey_options[] = {
+const OPTIONS genpkey_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"out", OPT_OUT, '>', "Output file"},
     {"outform", OPT_OUTFORM, 'F', "output format (DER or PEM)"},
diff --git a/apps/genrsa.c b/apps/genrsa.c
index 4d104d2..bdcb20c 100644
--- a/apps/genrsa.c
+++ b/apps/genrsa.c
@@ -36,7 +36,7 @@ typedef enum OPTION_choice {
     OPT_OUT, OPT_RAND, OPT_PASSOUT, OPT_CIPHER
 } OPTION_CHOICE;
 
-OPTIONS genrsa_options[] = {
+const OPTIONS genrsa_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"3", OPT_3, '-', "Use 3 for the E value"},
     {"F4", OPT_F4, '-', "Use F4 (0x10001) for the E value"},
diff --git a/apps/nseq.c b/apps/nseq.c
index 018d5eb..a97fe18 100644
--- a/apps/nseq.c
+++ b/apps/nseq.c
@@ -18,7 +18,7 @@ typedef enum OPTION_choice {
     OPT_TOSEQ, OPT_IN, OPT_OUT
 } OPTION_CHOICE;
 
-OPTIONS nseq_options[] = {
+const OPTIONS nseq_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"toseq", OPT_TOSEQ, '-', "Output NS Sequence file"},
     {"in", OPT_IN, '<', "Input file"},
diff --git a/apps/ocsp.c b/apps/ocsp.c
index 41ea970..8f60842 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -99,7 +99,7 @@ typedef enum OPTION_choice {
     OPT_MD
 } OPTION_CHOICE;
 
-OPTIONS ocsp_options[] = {
+const OPTIONS ocsp_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"out", OPT_OUTFILE, '>', "Output filename"},
     {"timeout", OPT_TIMEOUT, 'p',
diff --git a/apps/openssl.c b/apps/openssl.c
index fceb458..f6a8f9d 100644
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -264,7 +264,7 @@ int main(int argc, char *argv[])
     EXIT(ret);
 }
 
-OPTIONS exit_options[] = {
+const OPTIONS exit_options[] = {
     {NULL}
 };
 
@@ -322,7 +322,7 @@ typedef enum HELPLIST_CHOICE {
     OPT_PK_ALGORITHMS, OPT_DISABLED, OPT_MISSING_HELP
 } HELPLIST_CHOICE;
 
-OPTIONS list_options[] = {
+const OPTIONS list_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"commands", OPT_COMMANDS, '-', "List of standard commands"},
     {"digest-commands", OPT_DIGEST_COMMANDS, '-',
@@ -397,7 +397,7 @@ typedef enum HELP_CHOICE {
     OPT_hERR = -1, OPT_hEOF = 0, OPT_hHELP
 } HELP_CHOICE;
 
-OPTIONS help_options[] = {
+const OPTIONS help_options[] = {
     {"help", OPT_hHELP, '-', "Display this summary"},
     {NULL}
 };
diff --git a/apps/passwd.c b/apps/passwd.c
index e4fb6d3..681af49 100644
--- a/apps/passwd.c
+++ b/apps/passwd.c
@@ -67,7 +67,7 @@ typedef enum OPTION_choice {
     OPT_1, OPT_5, OPT_6, OPT_CRYPT, OPT_SALT, OPT_STDIN
 } OPTION_CHOICE;
 
-OPTIONS passwd_options[] = {
+const OPTIONS passwd_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"in", OPT_IN, '<', "Pead passwords from file"},
     {"noverify", OPT_NOVERIFY, '-',
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 93489d6..2415008 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -56,7 +56,7 @@ typedef enum OPTION_choice {
     OPT_CAFILE, OPT_NOCAPATH, OPT_NOCAFILE, OPT_ENGINE
 } OPTION_CHOICE;
 
-OPTIONS pkcs12_options[] = {
+const OPTIONS pkcs12_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"nokeys", OPT_NOKEYS, '-', "Don't output private keys"},
     {"keyex", OPT_KEYEX, '-', "Set MS key exchange type"},
diff --git a/apps/pkcs7.c b/apps/pkcs7.c
index 85994cd..bd4d51e 100644
--- a/apps/pkcs7.c
+++ b/apps/pkcs7.c
@@ -25,7 +25,7 @@ typedef enum OPTION_choice {
     OPT_TEXT, OPT_PRINT, OPT_PRINT_CERTS, OPT_ENGINE
 } OPTION_CHOICE;
 
-OPTIONS pkcs7_options[] = {
+const OPTIONS pkcs7_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'F', "Input format - DER or PEM"},
     {"in", OPT_IN, '<', "Input file"},
diff --git a/apps/pkcs8.c b/apps/pkcs8.c
index 3592a0f..f31008a 100644
--- a/apps/pkcs8.c
+++ b/apps/pkcs8.c
@@ -27,7 +27,7 @@ typedef enum OPTION_choice {
     OPT_TRADITIONAL
 } OPTION_CHOICE;
 
-OPTIONS pkcs8_options[] = {
+const OPTIONS pkcs8_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'F', "Input format (DER or PEM)"},
     {"outform", OPT_OUTFORM, 'F', "Output format (DER or PEM)"},
diff --git a/apps/pkey.c b/apps/pkey.c
index 50ee05f..426ef92 100644
--- a/apps/pkey.c
+++ b/apps/pkey.c
@@ -21,7 +21,7 @@ typedef enum OPTION_choice {
     OPT_TEXT, OPT_NOOUT, OPT_MD, OPT_TRADITIONAL
 } OPTION_CHOICE;
 
-OPTIONS pkey_options[] = {
+const OPTIONS pkey_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'f', "Input format (DER or PEM)"},
     {"outform", OPT_OUTFORM, 'F', "Output format (DER or PEM)"},
diff --git a/apps/pkeyparam.c b/apps/pkeyparam.c
index f6bcb8f..a387db9 100644
--- a/apps/pkeyparam.c
+++ b/apps/pkeyparam.c
@@ -19,7 +19,7 @@ typedef enum OPTION_choice {
     OPT_IN, OPT_OUT, OPT_TEXT, OPT_NOOUT, OPT_ENGINE
 } OPTION_CHOICE;
 
-OPTIONS pkeyparam_options[] = {
+const OPTIONS pkeyparam_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"in", OPT_IN, '<', "Input file"},
     {"out", OPT_OUT, '>', "Output file"},
diff --git a/apps/pkeyutl.c b/apps/pkeyutl.c
index 02e28e2..b847eb9 100644
--- a/apps/pkeyutl.c
+++ b/apps/pkeyutl.c
@@ -39,7 +39,7 @@ typedef enum OPTION_choice {
     OPT_PEERFORM, OPT_KEYFORM, OPT_PKEYOPT, OPT_KDF, OPT_KDFLEN
 } OPTION_CHOICE;
 
-OPTIONS pkeyutl_options[] = {
+const OPTIONS pkeyutl_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"in", OPT_IN, '<', "Input file - default stdin"},
     {"out", OPT_OUT, '>', "Output file - default stdout"},
diff --git a/apps/prime.c b/apps/prime.c
index b0f5969..1092cf2 100644
--- a/apps/prime.c
+++ b/apps/prime.c
@@ -17,7 +17,7 @@ typedef enum OPTION_choice {
     OPT_HEX, OPT_GENERATE, OPT_BITS, OPT_SAFE, OPT_CHECKS
 } OPTION_CHOICE;
 
-OPTIONS prime_options[] = {
+const OPTIONS prime_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [options] [number...]\n"},
     {OPT_HELP_STR, 1, '-',
         "  number Number to check for primality\n"},
diff --git a/apps/progs.h b/apps/progs.h
index 5f6f07f..31f383e 100644
--- a/apps/progs.h
+++ b/apps/progs.h
@@ -73,345 +73,345 @@ extern int verify_main(int argc, char *argv[]);
 extern int version_main(int argc, char *argv[]);
 extern int x509_main(int argc, char *argv[]);
 
-extern OPTIONS asn1parse_options[];
-extern OPTIONS ca_options[];
-extern OPTIONS ciphers_options[];
-extern OPTIONS cms_options[];
-extern OPTIONS crl_options[];
-extern OPTIONS crl2pkcs7_options[];
-extern OPTIONS dgst_options[];
-extern OPTIONS dhparam_options[];
-extern OPTIONS dsa_options[];
-extern OPTIONS dsaparam_options[];
-extern OPTIONS ec_options[];
-extern OPTIONS ecparam_options[];
-extern OPTIONS enc_options[];
-extern OPTIONS engine_options[];
-extern OPTIONS errstr_options[];
-extern OPTIONS exit_options[];
-extern OPTIONS gendsa_options[];
-extern OPTIONS genpkey_options[];
-extern OPTIONS genrsa_options[];
-extern OPTIONS help_options[];
-extern OPTIONS list_options[];
-extern OPTIONS nseq_options[];
-extern OPTIONS ocsp_options[];
-extern OPTIONS passwd_options[];
-extern OPTIONS pkcs12_options[];
-extern OPTIONS pkcs7_options[];
-extern OPTIONS pkcs8_options[];
-extern OPTIONS pkey_options[];
-extern OPTIONS pkeyparam_options[];
-extern OPTIONS pkeyutl_options[];
-extern OPTIONS prime_options[];
-extern OPTIONS rand_options[];
-extern OPTIONS rehash_options[];
-extern OPTIONS req_options[];
-extern OPTIONS rsa_options[];
-extern OPTIONS rsautl_options[];
-extern OPTIONS s_client_options[];
-extern OPTIONS s_server_options[];
-extern OPTIONS s_time_options[];
-extern OPTIONS sess_id_options[];
-extern OPTIONS smime_options[];
-extern OPTIONS speed_options[];
-extern OPTIONS spkac_options[];
-extern OPTIONS srp_options[];
-extern OPTIONS ts_options[];
-extern OPTIONS verify_options[];
-extern OPTIONS version_options[];
-extern OPTIONS x509_options[];
+extern const OPTIONS asn1parse_options[];
+extern const OPTIONS ca_options[];
+extern const OPTIONS ciphers_options[];
+extern const OPTIONS cms_options[];
+extern const OPTIONS crl_options[];
+extern const OPTIONS crl2pkcs7_options[];
+extern const OPTIONS dgst_options[];
+extern const OPTIONS dhparam_options[];
+extern const OPTIONS dsa_options[];
+extern const OPTIONS dsaparam_options[];
+extern const OPTIONS ec_options[];
+extern const OPTIONS ecparam_options[];
+extern const OPTIONS enc_options[];
+extern const OPTIONS engine_options[];
+extern const OPTIONS errstr_options[];
+extern const OPTIONS exit_options[];
+extern const OPTIONS gendsa_options[];
+extern const OPTIONS genpkey_options[];
+extern const OPTIONS genrsa_options[];
+extern const OPTIONS help_options[];
+extern const OPTIONS list_options[];
+extern const OPTIONS nseq_options[];
+extern const OPTIONS ocsp_options[];
+extern const OPTIONS passwd_options[];
+extern const OPTIONS pkcs12_options[];
+extern const OPTIONS pkcs7_options[];
+extern const OPTIONS pkcs8_options[];
+extern const OPTIONS pkey_options[];
+extern const OPTIONS pkeyparam_options[];
+extern const OPTIONS pkeyutl_options[];
+extern const OPTIONS prime_options[];
+extern const OPTIONS rand_options[];
+extern const OPTIONS rehash_options[];
+extern const OPTIONS req_options[];
+extern const OPTIONS rsa_options[];
+extern const OPTIONS rsautl_options[];
+extern const OPTIONS s_client_options[];
+extern const OPTIONS s_server_options[];
+extern const OPTIONS s_time_options[];
+extern const OPTIONS sess_id_options[];
+extern const OPTIONS smime_options[];
+extern const OPTIONS speed_options[];
+extern const OPTIONS spkac_options[];
+extern const OPTIONS srp_options[];
+extern const OPTIONS ts_options[];
+extern const OPTIONS verify_options[];
+extern const OPTIONS version_options[];
+extern const OPTIONS x509_options[];
 
 #ifdef INCLUDE_FUNCTION_TABLE
 static FUNCTION functions[] = {
-    { FT_general, "asn1parse", asn1parse_main, asn1parse_options },
-    { FT_general, "ca", ca_main, ca_options },
+    {FT_general, "asn1parse", asn1parse_main, asn1parse_options},
+    {FT_general, "ca", ca_main, ca_options},
 #ifndef OPENSSL_NO_SOCK
-    { FT_general, "ciphers", ciphers_main, ciphers_options },
+    {FT_general, "ciphers", ciphers_main, ciphers_options},
 #endif
 #ifndef OPENSSL_NO_CMS
-    { FT_general, "cms", cms_main, cms_options },
+    {FT_general, "cms", cms_main, cms_options},
 #endif
-    { FT_general, "crl", crl_main, crl_options },
-    { FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options },
-    { FT_general, "dgst", dgst_main, dgst_options },
+    {FT_general, "crl", crl_main, crl_options},
+    {FT_general, "crl2pkcs7", crl2pkcs7_main, crl2pkcs7_options},
+    {FT_general, "dgst", dgst_main, dgst_options},
 #ifndef OPENSSL_NO_DH
-    { FT_general, "dhparam", dhparam_main, dhparam_options },
+    {FT_general, "dhparam", dhparam_main, dhparam_options},
 #endif
 #ifndef OPENSSL_NO_DSA
-    { FT_general, "dsa", dsa_main, dsa_options },
+    {FT_general, "dsa", dsa_main, dsa_options},
 #endif
 #ifndef OPENSSL_NO_DSA
-    { FT_general, "dsaparam", dsaparam_main, dsaparam_options },
+    {FT_general, "dsaparam", dsaparam_main, dsaparam_options},
 #endif
 #ifndef OPENSSL_NO_EC
-    { FT_general, "ec", ec_main, ec_options },
+    {FT_general, "ec", ec_main, ec_options},
 #endif
 #ifndef OPENSSL_NO_EC
-    { FT_general, "ecparam", ecparam_main, ecparam_options },
+    {FT_general, "ecparam", ecparam_main, ecparam_options},
 #endif
-    { FT_general, "enc", enc_main, enc_options },
+    {FT_general, "enc", enc_main, enc_options},
 #ifndef OPENSSL_NO_ENGINE
-    { FT_general, "engine", engine_main, engine_options },
+    {FT_general, "engine", engine_main, engine_options},
 #endif
-    { FT_general, "errstr", errstr_main, errstr_options },
-    { FT_general, "exit", exit_main, exit_options },
+    {FT_general, "errstr", errstr_main, errstr_options},
+    {FT_general, "exit", exit_main, exit_options},
 #ifndef OPENSSL_NO_DSA
-    { FT_general, "gendsa", gendsa_main, gendsa_options },
+    {FT_general, "gendsa", gendsa_main, gendsa_options},
 #endif
-    { FT_general, "genpkey", genpkey_main, genpkey_options },
+    {FT_general, "genpkey", genpkey_main, genpkey_options},
 #ifndef OPENSSL_NO_RSA
-    { FT_general, "genrsa", genrsa_main, genrsa_options },
+    {FT_general, "genrsa", genrsa_main, genrsa_options},
 #endif
-    { FT_general, "help", help_main, help_options },
-    { FT_general, "list", list_main, list_options },
-    { FT_general, "nseq", nseq_main, nseq_options },
+    {FT_general, "help", help_main, help_options},
+    {FT_general, "list", list_main, list_options},
+    {FT_general, "nseq", nseq_main, nseq_options},
 #ifndef OPENSSL_NO_OCSP
-    { FT_general, "ocsp", ocsp_main, ocsp_options },
+    {FT_general, "ocsp", ocsp_main, ocsp_options},
 #endif
-    { FT_general, "passwd", passwd_main, passwd_options },
+    {FT_general, "passwd", passwd_main, passwd_options},
 #ifndef OPENSSL_NO_DES
-    { FT_general, "pkcs12", pkcs12_main, pkcs12_options },
-#endif
-    { FT_general, "pkcs7", pkcs7_main, pkcs7_options },
-    { FT_general, "pkcs8", pkcs8_main, pkcs8_options },
-    { FT_general, "pkey", pkey_main, pkey_options },
-    { FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options },
-    { FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options },
-    { FT_general, "prime", prime_main, prime_options },
-    { FT_general, "rand", rand_main, rand_options },
-    { FT_general, "rehash", rehash_main, rehash_options },
-    { FT_general, "req", req_main, req_options },
-    { FT_general, "rsa", rsa_main, rsa_options },
+    {FT_general, "pkcs12", pkcs12_main, pkcs12_options},
+#endif
+    {FT_general, "pkcs7", pkcs7_main, pkcs7_options},
+    {FT_general, "pkcs8", pkcs8_main, pkcs8_options},
+    {FT_general, "pkey", pkey_main, pkey_options},
+    {FT_general, "pkeyparam", pkeyparam_main, pkeyparam_options},
+    {FT_general, "pkeyutl", pkeyutl_main, pkeyutl_options},
+    {FT_general, "prime", prime_main, prime_options},
+    {FT_general, "rand", rand_main, rand_options},
+    {FT_general, "rehash", rehash_main, rehash_options},
+    {FT_general, "req", req_main, req_options},
+    {FT_general, "rsa", rsa_main, rsa_options},
 #ifndef OPENSSL_NO_RSA
-    { FT_general, "rsautl", rsautl_main, rsautl_options },
+    {FT_general, "rsautl", rsautl_main, rsautl_options},
 #endif
 #ifndef OPENSSL_NO_SOCK
-    { FT_general, "s_client", s_client_main, s_client_options },
+    {FT_general, "s_client", s_client_main, s_client_options},
 #endif
 #ifndef OPENSSL_NO_SOCK
-    { FT_general, "s_server", s_server_main, s_server_options },
+    {FT_general, "s_server", s_server_main, s_server_options},
 #endif
 #ifndef OPENSSL_NO_SOCK
-    { FT_general, "s_time", s_time_main, s_time_options },
+    {FT_general, "s_time", s_time_main, s_time_options},
 #endif
-    { FT_general, "sess_id", sess_id_main, sess_id_options },
-    { FT_general, "smime", smime_main, smime_options },
-    { FT_general, "speed", speed_main, speed_options },
-    { FT_general, "spkac", spkac_main, spkac_options },
+    {FT_general, "sess_id", sess_id_main, sess_id_options},
+    {FT_general, "smime", smime_main, smime_options},
+    {FT_general, "speed", speed_main, speed_options},
+    {FT_general, "spkac", spkac_main, spkac_options},
 #ifndef OPENSSL_NO_SRP
-    { FT_general, "srp", srp_main, srp_options },
+    {FT_general, "srp", srp_main, srp_options},
 #endif
 #ifndef OPENSSL_NO_TS
-    { FT_general, "ts", ts_main, ts_options },
+    {FT_general, "ts", ts_main, ts_options},
 #endif
-    { FT_general, "verify", verify_main, verify_options },
-    { FT_general, "version", version_main, version_options },
-    { FT_general, "x509", x509_main, x509_options },
+    {FT_general, "verify", verify_main, verify_options},
+    {FT_general, "version", version_main, version_options},
+    {FT_general, "x509", x509_main, x509_options},
 #ifndef OPENSSL_NO_MD2
-    { FT_md, "md2", dgst_main},
+    {FT_md, "md2", dgst_main},
 #endif
 #ifndef OPENSSL_NO_MD4
-    { FT_md, "md4", dgst_main},
+    {FT_md, "md4", dgst_main},
 #endif
-    { FT_md, "md5", dgst_main},
+    {FT_md, "md5", dgst_main},
 #ifndef OPENSSL_NO_GOST
-    { FT_md, "gost", dgst_main},
+    {FT_md, "gost", dgst_main},
 #endif
-    { FT_md, "sha1", dgst_main},
-    { FT_md, "sha224", dgst_main},
-    { FT_md, "sha256", dgst_main},
-    { FT_md, "sha384", dgst_main},
-    { FT_md, "sha512", dgst_main},
+    {FT_md, "sha1", dgst_main},
+    {FT_md, "sha224", dgst_main},
+    {FT_md, "sha256", dgst_main},
+    {FT_md, "sha384", dgst_main},
+    {FT_md, "sha512", dgst_main},
 #ifndef OPENSSL_NO_MDC2
-    { FT_md, "mdc2", dgst_main},
+    {FT_md, "mdc2", dgst_main},
 #endif
 #ifndef OPENSSL_NO_RMD160
-    { FT_md, "rmd160", dgst_main},
+    {FT_md, "rmd160", dgst_main},
 #endif
 #ifndef OPENSSL_NO_BLAKE2
-    { FT_md, "blake2b512", dgst_main},
+    {FT_md, "blake2b512", dgst_main},
 #endif
 #ifndef OPENSSL_NO_BLAKE2
-    { FT_md, "blake2s256", dgst_main},
-#endif
-    { FT_cipher, "aes-128-cbc", enc_main, enc_options },
-    { FT_cipher, "aes-128-ecb", enc_main, enc_options },
-    { FT_cipher, "aes-192-cbc", enc_main, enc_options },
-    { FT_cipher, "aes-192-ecb", enc_main, enc_options },
-    { FT_cipher, "aes-256-cbc", enc_main, enc_options },
-    { FT_cipher, "aes-256-ecb", enc_main, enc_options },
+    {FT_md, "blake2s256", dgst_main},
+#endif
+    {FT_cipher, "aes-128-cbc", enc_main, enc_options},
+    {FT_cipher, "aes-128-ecb", enc_main, enc_options},
+    {FT_cipher, "aes-192-cbc", enc_main, enc_options},
+    {FT_cipher, "aes-192-ecb", enc_main, enc_options},
+    {FT_cipher, "aes-256-cbc", enc_main, enc_options},
+    {FT_cipher, "aes-256-ecb", enc_main, enc_options},
 #ifndef OPENSSL_NO_CAMELLIA
-    { FT_cipher, "camellia-128-cbc", enc_main, enc_options },
+    {FT_cipher, "camellia-128-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAMELLIA
-    { FT_cipher, "camellia-128-ecb", enc_main, enc_options },
+    {FT_cipher, "camellia-128-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAMELLIA
-    { FT_cipher, "camellia-192-cbc", enc_main, enc_options },
+    {FT_cipher, "camellia-192-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAMELLIA
-    { FT_cipher, "camellia-192-ecb", enc_main, enc_options },
+    {FT_cipher, "camellia-192-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAMELLIA
-    { FT_cipher, "camellia-256-cbc", enc_main, enc_options },
+    {FT_cipher, "camellia-256-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAMELLIA
-    { FT_cipher, "camellia-256-ecb", enc_main, enc_options },
+    {FT_cipher, "camellia-256-ecb", enc_main, enc_options},
 #endif
-    { FT_cipher, "base64", enc_main, enc_options },
+    {FT_cipher, "base64", enc_main, enc_options},
 #ifdef ZLIB
-    { FT_cipher, "zlib", enc_main, enc_options },
+    {FT_cipher, "zlib", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des", enc_main, enc_options },
+    {FT_cipher, "des", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des3", enc_main, enc_options },
+    {FT_cipher, "des3", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "desx", enc_main, enc_options },
+    {FT_cipher, "desx", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_IDEA
-    { FT_cipher, "idea", enc_main, enc_options },
+    {FT_cipher, "idea", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_SEED
-    { FT_cipher, "seed", enc_main, enc_options },
+    {FT_cipher, "seed", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC4
-    { FT_cipher, "rc4", enc_main, enc_options },
+    {FT_cipher, "rc4", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC4
-    { FT_cipher, "rc4-40", enc_main, enc_options },
+    {FT_cipher, "rc4-40", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC2
-    { FT_cipher, "rc2", enc_main, enc_options },
+    {FT_cipher, "rc2", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_BF
-    { FT_cipher, "bf", enc_main, enc_options },
+    {FT_cipher, "bf", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAST
-    { FT_cipher, "cast", enc_main, enc_options },
+    {FT_cipher, "cast", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC5
-    { FT_cipher, "rc5", enc_main, enc_options },
+    {FT_cipher, "rc5", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ecb", enc_main, enc_options },
+    {FT_cipher, "des-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ede", enc_main, enc_options },
+    {FT_cipher, "des-ede", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ede3", enc_main, enc_options },
+    {FT_cipher, "des-ede3", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-cbc", enc_main, enc_options },
+    {FT_cipher, "des-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ede-cbc", enc_main, enc_options },
+    {FT_cipher, "des-ede-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ede3-cbc", enc_main, enc_options },
+    {FT_cipher, "des-ede3-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-cfb", enc_main, enc_options },
+    {FT_cipher, "des-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ede-cfb", enc_main, enc_options },
+    {FT_cipher, "des-ede-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ede3-cfb", enc_main, enc_options },
+    {FT_cipher, "des-ede3-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ofb", enc_main, enc_options },
+    {FT_cipher, "des-ofb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ede-ofb", enc_main, enc_options },
+    {FT_cipher, "des-ede-ofb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_DES
-    { FT_cipher, "des-ede3-ofb", enc_main, enc_options },
+    {FT_cipher, "des-ede3-ofb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_IDEA
-    { FT_cipher, "idea-cbc", enc_main, enc_options },
+    {FT_cipher, "idea-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_IDEA
-    { FT_cipher, "idea-ecb", enc_main, enc_options },
+    {FT_cipher, "idea-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_IDEA
-    { FT_cipher, "idea-cfb", enc_main, enc_options },
+    {FT_cipher, "idea-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_IDEA
-    { FT_cipher, "idea-ofb", enc_main, enc_options },
+    {FT_cipher, "idea-ofb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_SEED
-    { FT_cipher, "seed-cbc", enc_main, enc_options },
+    {FT_cipher, "seed-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_SEED
-    { FT_cipher, "seed-ecb", enc_main, enc_options },
+    {FT_cipher, "seed-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_SEED
-    { FT_cipher, "seed-cfb", enc_main, enc_options },
+    {FT_cipher, "seed-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_SEED
-    { FT_cipher, "seed-ofb", enc_main, enc_options },
+    {FT_cipher, "seed-ofb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC2
-    { FT_cipher, "rc2-cbc", enc_main, enc_options },
+    {FT_cipher, "rc2-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC2
-    { FT_cipher, "rc2-ecb", enc_main, enc_options },
+    {FT_cipher, "rc2-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC2
-    { FT_cipher, "rc2-cfb", enc_main, enc_options },
+    {FT_cipher, "rc2-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC2
-    { FT_cipher, "rc2-ofb", enc_main, enc_options },
+    {FT_cipher, "rc2-ofb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC2
-    { FT_cipher, "rc2-64-cbc", enc_main, enc_options },
+    {FT_cipher, "rc2-64-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC2
-    { FT_cipher, "rc2-40-cbc", enc_main, enc_options },
+    {FT_cipher, "rc2-40-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_BF
-    { FT_cipher, "bf-cbc", enc_main, enc_options },
+    {FT_cipher, "bf-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_BF
-    { FT_cipher, "bf-ecb", enc_main, enc_options },
+    {FT_cipher, "bf-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_BF
-    { FT_cipher, "bf-cfb", enc_main, enc_options },
+    {FT_cipher, "bf-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_BF
-    { FT_cipher, "bf-ofb", enc_main, enc_options },
+    {FT_cipher, "bf-ofb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAST
-    { FT_cipher, "cast5-cbc", enc_main, enc_options },
+    {FT_cipher, "cast5-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAST
-    { FT_cipher, "cast5-ecb", enc_main, enc_options },
+    {FT_cipher, "cast5-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAST
-    { FT_cipher, "cast5-cfb", enc_main, enc_options },
+    {FT_cipher, "cast5-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAST
-    { FT_cipher, "cast5-ofb", enc_main, enc_options },
+    {FT_cipher, "cast5-ofb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_CAST
-    { FT_cipher, "cast-cbc", enc_main, enc_options },
+    {FT_cipher, "cast-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC5
-    { FT_cipher, "rc5-cbc", enc_main, enc_options },
+    {FT_cipher, "rc5-cbc", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC5
-    { FT_cipher, "rc5-ecb", enc_main, enc_options },
+    {FT_cipher, "rc5-ecb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC5
-    { FT_cipher, "rc5-cfb", enc_main, enc_options },
+    {FT_cipher, "rc5-cfb", enc_main, enc_options},
 #endif
 #ifndef OPENSSL_NO_RC5
-    { FT_cipher, "rc5-ofb", enc_main, enc_options },
+    {FT_cipher, "rc5-ofb", enc_main, enc_options},
 #endif
     { 0, NULL, NULL}
 };
diff --git a/apps/progs.pl b/apps/progs.pl
index 21baf17..94a4962 100644
--- a/apps/progs.pl
+++ b/apps/progs.pl
@@ -63,7 +63,7 @@ foreach (@ARGV) {
 print "\n";
 
 foreach (@ARGV) {
-	printf "extern OPTIONS %s_options[];\n", $_;
+	printf "extern const OPTIONS %s_options[];\n", $_;
 }
 
 print "\n#ifdef INCLUDE_FUNCTION_TABLE\n";
@@ -80,7 +80,7 @@ my %cmd_disabler = (
     pkcs12   => "des",
     );
 foreach my $cmd (@ARGV) {
-	my $str="    { FT_general, \"$cmd\", ${cmd}_main, ${cmd}_options },\n";
+	my $str="    {FT_general, \"$cmd\", ${cmd}_main, ${cmd}_options},\n";
 	if ($cmd =~ /^s_/) {
 		print "#ifndef OPENSSL_NO_SOCK\n${str}#endif\n";
 	} elsif (grep { $cmd eq $_ } @disablables) {
@@ -102,7 +102,7 @@ foreach my $cmd (
 	"sha1", "sha224", "sha256", "sha384", "sha512",
 	"mdc2", "rmd160", "blake2b512", "blake2s256"
 ) {
-        my $str = "    { FT_md, \"".$cmd."\", dgst_main},\n";
+        my $str = "    {FT_md, \"".$cmd."\", dgst_main},\n";
         if (grep { $cmd eq $_ } @disablables) {
                 print "#ifndef OPENSSL_NO_".uc($cmd)."\n${str}#endif\n";
         } elsif (my $disabler = $md_disabler{$cmd}) {
@@ -138,7 +138,7 @@ foreach my $cmd (
 	"cast5-cbc","cast5-ecb", "cast5-cfb","cast5-ofb",
 	"cast-cbc", "rc5-cbc",   "rc5-ecb",  "rc5-cfb",  "rc5-ofb"
 ) {
-	my $str="    { FT_cipher, \"$cmd\", enc_main, enc_options },\n";
+	my $str="    {FT_cipher, \"$cmd\", enc_main, enc_options},\n";
 	(my $algo= $cmd) =~ s/-.*//g;
         if ($cmd eq "zlib") {
                 print "#ifdef ZLIB\n${str}#endif\n";
diff --git a/apps/rand.c b/apps/rand.c
index d60f1ec..e6e9e3e 100644
--- a/apps/rand.c
+++ b/apps/rand.c
@@ -22,7 +22,7 @@ typedef enum OPTION_choice {
     OPT_OUT, OPT_ENGINE, OPT_RAND, OPT_BASE64, OPT_HEX
 } OPTION_CHOICE;
 
-OPTIONS rand_options[] = {
+const OPTIONS rand_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [flags] num\n"},
     {OPT_HELP_STR, 1, '-', "Valid options are:\n"},
     {"help", OPT_HELP, '-', "Display this summary"},
diff --git a/apps/rehash.c b/apps/rehash.c
index 4e10ded..281e6cd 100644
--- a/apps/rehash.c
+++ b/apps/rehash.c
@@ -399,7 +399,7 @@ typedef enum OPTION_choice {
     OPT_COMPAT, OPT_OLD, OPT_N, OPT_VERBOSE
 } OPTION_CHOICE;
 
-OPTIONS rehash_options[] = {
+const OPTIONS rehash_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [options] [cert-directory...]\n"},
     {OPT_HELP_STR, 1, '-', "Valid options are:\n"},
     {"help", OPT_HELP, '-', "Display this summary"},
@@ -467,7 +467,7 @@ int rehash_main(int argc, char **argv)
 }
 
 #else
-OPTIONS rehash_options[] = {
+const OPTIONS rehash_options[] = {
     {NULL}
 };
 
diff --git a/apps/req.c b/apps/req.c
index 8ebe1ec..55ca935 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -82,7 +82,7 @@ typedef enum OPTION_choice {
     OPT_REQEXTS, OPT_MD
 } OPTION_CHOICE;
 
-OPTIONS req_options[] = {
+const OPTIONS req_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'F', "Input format - DER or PEM"},
     {"outform", OPT_OUTFORM, 'F', "Output format - DER or PEM"},
diff --git a/apps/rsa.c b/apps/rsa.c
index bd2f53a..807bc70 100644
--- a/apps/rsa.c
+++ b/apps/rsa.c
@@ -35,7 +35,7 @@ typedef enum OPTION_choice {
     OPT_NOOUT, OPT_TEXT, OPT_MODULUS, OPT_CHECK, OPT_CIPHER
 } OPTION_CHOICE;
 
-OPTIONS rsa_options[] = {
+const OPTIONS rsa_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'f', "Input format, one of DER NET PEM"},
     {"outform", OPT_OUTFORM, 'f', "Output format, one of DER NET PEM PVK"},
diff --git a/apps/rsautl.c b/apps/rsautl.c
index 84f0164..268c86c 100644
--- a/apps/rsautl.c
+++ b/apps/rsautl.c
@@ -35,7 +35,7 @@ typedef enum OPTION_choice {
     OPT_PUBIN, OPT_CERTIN, OPT_INKEY, OPT_PASSIN, OPT_KEYFORM
 } OPTION_CHOICE;
 
-OPTIONS rsautl_options[] = {
+const OPTIONS rsautl_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"in", OPT_IN, '<', "Input file"},
     {"out", OPT_OUT, '>', "Output file"},
diff --git a/apps/s_client.c b/apps/s_client.c
index 6ec792c..0442aec 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -558,7 +558,7 @@ typedef enum OPTION_choice {
     OPT_DANE_TLSA_RRDATA, OPT_DANE_EE_NO_NAME
 } OPTION_CHOICE;
 
-OPTIONS s_client_options[] = {
+const OPTIONS s_client_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"host", OPT_HOST, 's', "Use -connect instead"},
     {"port", OPT_PORT, 'p', "Use -connect instead"},
diff --git a/apps/s_server.c b/apps/s_server.c
index 2051459..eaecb7e 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -679,7 +679,7 @@ typedef enum OPTION_choice {
     OPT_X_ENUM
 } OPTION_CHOICE;
 
-OPTIONS s_server_options[] = {
+const OPTIONS s_server_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"port", OPT_PORT, 'p',
      "TCP/IP port to listen on for connections (default is " PORT ")"},
diff --git a/apps/s_time.c b/apps/s_time.c
index 263502c..315f69d 100644
--- a/apps/s_time.c
+++ b/apps/s_time.c
@@ -59,7 +59,7 @@ typedef enum OPTION_choice {
     OPT_WWW
 } OPTION_CHOICE;
 
-OPTIONS s_time_options[] = {
+const OPTIONS s_time_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"connect", OPT_CONNECT, 's',
      "Where to connect as post:port (default is " SSL_CONNECT_NAME ")"},
diff --git a/apps/sess_id.c b/apps/sess_id.c
index 2b63e69..38624cf 100644
--- a/apps/sess_id.c
+++ b/apps/sess_id.c
@@ -23,7 +23,7 @@ typedef enum OPTION_choice {
     OPT_TEXT, OPT_CERT, OPT_NOOUT, OPT_CONTEXT
 } OPTION_CHOICE;
 
-OPTIONS sess_id_options[] = {
+const OPTIONS sess_id_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'F', "Input format - default PEM (DER or PEM)"},
     {"outform", OPT_OUTFORM, 'f',
diff --git a/apps/smime.c b/apps/smime.c
index 0c8660f..7696d3b 100644
--- a/apps/smime.c
+++ b/apps/smime.c
@@ -45,7 +45,7 @@ typedef enum OPTION_choice {
     OPT_OUTFORM, OPT_CONTENT
 } OPTION_CHOICE;
 
-OPTIONS smime_options[] = {
+const OPTIONS smime_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [options] cert.pem...\n"},
     {OPT_HELP_STR, 1, '-',
         "  cert.pem... recipient certs for encryption\n"},
diff --git a/apps/speed.c b/apps/speed.c
index e9dc8a9..bc46d45 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -363,7 +363,7 @@ typedef enum OPTION_choice {
     OPT_MR, OPT_MB, OPT_MISALIGN, OPT_ASYNCJOBS
 } OPTION_CHOICE;
 
-OPTIONS speed_options[] = {
+const OPTIONS speed_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [options] ciphers...\n"},
     {OPT_HELP_STR, 1, '-', "Valid options are:\n"},
     {"help", OPT_HELP, '-', "Display this summary"},
diff --git a/apps/spkac.c b/apps/spkac.c
index c65103d..70eeafc 100644
--- a/apps/spkac.c
+++ b/apps/spkac.c
@@ -27,7 +27,7 @@ typedef enum OPTION_choice {
     OPT_SPKSECT
 } OPTION_CHOICE;
 
-OPTIONS spkac_options[] = {
+const OPTIONS spkac_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"in", OPT_IN, '<', "Input file"},
     {"out", OPT_OUT, '>', "Output file"},
diff --git a/apps/srp.c b/apps/srp.c
index 69175eb..643352e 100644
--- a/apps/srp.c
+++ b/apps/srp.c
@@ -186,7 +186,7 @@ typedef enum OPTION_choice {
     OPT_PASSIN, OPT_PASSOUT, OPT_ENGINE
 } OPTION_CHOICE;
 
-OPTIONS srp_options[] = {
+const OPTIONS srp_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"verbose", OPT_VERBOSE, '-', "Talk a lot while doing things"},
     {"config", OPT_CONFIG, '<', "A config file"},
diff --git a/apps/ts.c b/apps/ts.c
index e785ea0..6c0adb1 100644
--- a/apps/ts.c
+++ b/apps/ts.c
@@ -86,7 +86,7 @@ typedef enum OPTION_choice {
     OPT_MD, OPT_V_ENUM
 } OPTION_CHOICE;
 
-OPTIONS ts_options[] = {
+const OPTIONS ts_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"config", OPT_CONFIG, '<', "Configuration file"},
     {"section", OPT_SECTION, 's', "Section to use within config file"},
diff --git a/apps/verify.c b/apps/verify.c
index 47a8c86..a8a6209 100644
--- a/apps/verify.c
+++ b/apps/verify.c
@@ -31,7 +31,7 @@ typedef enum OPTION_choice {
     OPT_VERBOSE
 } OPTION_CHOICE;
 
-OPTIONS verify_options[] = {
+const OPTIONS verify_options[] = {
     {OPT_HELP_STR, 1, '-', "Usage: %s [options] cert.pem...\n"},
     {OPT_HELP_STR, 1, '-', "Valid options are:\n"},
     {"help", OPT_HELP, '-', "Display this summary"},
diff --git a/apps/version.c b/apps/version.c
index e3c8299..28523b7 100644
--- a/apps/version.c
+++ b/apps/version.c
@@ -35,7 +35,7 @@ typedef enum OPTION_choice {
     OPT_B, OPT_D, OPT_E, OPT_F, OPT_O, OPT_P, OPT_V, OPT_A
 } OPTION_CHOICE;
 
-OPTIONS version_options[] = {
+const OPTIONS version_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"a", OPT_A, '-', "Show all data"},
     {"b", OPT_B, '-', "Show build date"},
diff --git a/apps/x509.c b/apps/x509.c
index 3539602..78f2c02 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -59,7 +59,7 @@ typedef enum OPTION_choice {
     OPT_BADSIG, OPT_MD, OPT_ENGINE, OPT_NOCERT
 } OPTION_CHOICE;
 
-OPTIONS x509_options[] = {
+const OPTIONS x509_options[] = {
     {"help", OPT_HELP, '-', "Display this summary"},
     {"inform", OPT_INFORM, 'f',
      "Input format - default PEM (one of DER, NET or PEM)"},


More information about the openssl-commits mailing list