diff options
author | Ralf S. Engelschall <rse@openssl.org> | 2000-02-11 10:47:18 +0100 |
---|---|---|
committer | Ralf S. Engelschall <rse@openssl.org> | 2000-02-11 10:47:18 +0100 |
commit | 667ac4ec6a9afb23a07dc7c695dbc5be0f2c83cd (patch) | |
tree | ea0ebfbb8853bb97d6f361beb958a85eac8a7f22 /apps | |
parent | 'passwd' tool. (diff) | |
download | openssl-667ac4ec6a9afb23a07dc7c695dbc5be0f2c83cd.tar.xz openssl-667ac4ec6a9afb23a07dc7c695dbc5be0f2c83cd.zip |
Make gcc 2.95.2 happy again, even under ``-Wall -Wshadow -Wpointer-arith -Wcast-align
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline''.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/asn1pars.c | 2 | ||||
-rw-r--r-- | apps/ca.c | 2 | ||||
-rw-r--r-- | apps/ciphers.c | 2 | ||||
-rw-r--r-- | apps/crl.c | 2 | ||||
-rw-r--r-- | apps/crl2p7.c | 2 | ||||
-rw-r--r-- | apps/dgst.c | 3 | ||||
-rw-r--r-- | apps/dh.c | 2 | ||||
-rw-r--r-- | apps/dhparam.c | 2 | ||||
-rw-r--r-- | apps/dsa.c | 2 | ||||
-rw-r--r-- | apps/dsaparam.c | 3 | ||||
-rw-r--r-- | apps/enc.c | 2 | ||||
-rw-r--r-- | apps/errstr.c | 2 | ||||
-rw-r--r-- | apps/gendh.c | 3 | ||||
-rw-r--r-- | apps/gendsa.c | 2 | ||||
-rw-r--r-- | apps/genrsa.c | 3 | ||||
-rw-r--r-- | apps/nseq.c | 1 | ||||
-rw-r--r-- | apps/pkcs12.c | 3 | ||||
-rw-r--r-- | apps/pkcs7.c | 2 | ||||
-rw-r--r-- | apps/pkcs8.c | 1 | ||||
-rw-r--r-- | apps/req.c | 2 | ||||
-rw-r--r-- | apps/rsa.c | 2 | ||||
-rw-r--r-- | apps/s_client.c | 2 | ||||
-rw-r--r-- | apps/s_server.c | 2 | ||||
-rw-r--r-- | apps/s_time.c | 2 | ||||
-rw-r--r-- | apps/sess_id.c | 3 | ||||
-rw-r--r-- | apps/smime.c | 2 | ||||
-rw-r--r-- | apps/speed.c | 2 | ||||
-rw-r--r-- | apps/spkac.c | 2 | ||||
-rw-r--r-- | apps/verify.c | 2 | ||||
-rw-r--r-- | apps/version.c | 2 | ||||
-rw-r--r-- | apps/x509.c | 2 |
31 files changed, 66 insertions, 0 deletions
diff --git a/apps/asn1pars.c b/apps/asn1pars.c index ac1e20dc04..f104ebc1f0 100644 --- a/apps/asn1pars.c +++ b/apps/asn1pars.c @@ -80,6 +80,8 @@ #undef PROG #define PROG asn1parse_main +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int i,badops=0,offset=0,ret=1,j; @@ -213,6 +213,8 @@ static char *section=NULL; static int preserve=0; static int msie_hack=0; +int MAIN(int, char **); + int MAIN(int argc, char **argv) { char *key=NULL; diff --git a/apps/ciphers.c b/apps/ciphers.c index 4baa0c3c8e..f8e9e7be2e 100644 --- a/apps/ciphers.c +++ b/apps/ciphers.c @@ -77,6 +77,8 @@ static char *ciphers_usage[]={ NULL }; +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int ret=1,i; diff --git a/apps/crl.c b/apps/crl.c index d91eb7fd80..338f46d97c 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -93,6 +93,8 @@ NULL static X509_CRL *load_crl(char *file, int format); static BIO *bio_out=NULL; +int MAIN(int, char **); + int MAIN(int argc, char **argv) { X509_CRL *x=NULL; diff --git a/apps/crl2p7.c b/apps/crl2p7.c index 8514be2a4f..4056591676 100644 --- a/apps/crl2p7.c +++ b/apps/crl2p7.c @@ -82,6 +82,8 @@ static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile); * -out arg - output file - default stdout */ +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int i,badops=0; diff --git a/apps/dgst.c b/apps/dgst.c index 5f0506ed8c..1b56d6ef44 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -74,6 +74,9 @@ #define PROG dgst_main void do_fp(unsigned char *buf,BIO *f,int sep); + +int MAIN(int, char **); + int MAIN(int argc, char **argv) { unsigned char *buf=NULL; @@ -82,6 +82,8 @@ * -C */ +int MAIN(int, char **); + int MAIN(int argc, char **argv) { DH *dh=NULL; diff --git a/apps/dhparam.c b/apps/dhparam.c index 5b769b7f31..293a400d0c 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -86,6 +86,8 @@ static void MS_CALLBACK dh_cb(int p, int n, void *arg); +int MAIN(int, char **); + int MAIN(int argc, char **argv) { DH *dh=NULL; diff --git a/apps/dsa.c b/apps/dsa.c index 6198ea94ea..a94bc95058 100644 --- a/apps/dsa.c +++ b/apps/dsa.c @@ -83,6 +83,8 @@ * -modulus - print the DSA public key */ +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int ret=1; diff --git a/apps/dsaparam.c b/apps/dsaparam.c index 9fc5697c2e..4d4e1ad2b5 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -85,6 +85,9 @@ */ static void MS_CALLBACK dsa_cb(int p, int n, void *arg); + +int MAIN(int, char **); + int MAIN(int argc, char **argv) { DSA *dsa=NULL; diff --git a/apps/enc.c b/apps/enc.c index 0beb6377d7..387cfe2f19 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -80,6 +80,8 @@ int set_hex(char *in,unsigned char *out,int size); #define BSIZE (8*1024) #define PROG enc_main +int MAIN(int, char **); + int MAIN(int argc, char **argv) { static const char magic[]="Salted__"; diff --git a/apps/errstr.c b/apps/errstr.c index c86b5d940b..4650379589 100644 --- a/apps/errstr.c +++ b/apps/errstr.c @@ -68,6 +68,8 @@ #undef PROG #define PROG errstr_main +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int i,ret=0; diff --git a/apps/gendh.c b/apps/gendh.c index 3986117594..1f6be96599 100644 --- a/apps/gendh.c +++ b/apps/gendh.c @@ -75,6 +75,9 @@ #define PROG gendh_main static void MS_CALLBACK dh_cb(int p, int n, void *arg); + +int MAIN(int, char **); + int MAIN(int argc, char **argv) { DH *dh=NULL; diff --git a/apps/gendsa.c b/apps/gendsa.c index 0c56b1410a..805f114516 100644 --- a/apps/gendsa.c +++ b/apps/gendsa.c @@ -73,6 +73,8 @@ #undef PROG #define PROG gendsa_main +int MAIN(int, char **); + int MAIN(int argc, char **argv) { DSA *dsa=NULL; diff --git a/apps/genrsa.c b/apps/genrsa.c index 63fd45ee98..a20cd30092 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c @@ -75,6 +75,9 @@ #define PROG genrsa_main static void MS_CALLBACK genrsa_cb(int p, int n, void *arg); + +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int ret=1; diff --git a/apps/nseq.c b/apps/nseq.c index 4a921396f9..cc88d50ceb 100644 --- a/apps/nseq.c +++ b/apps/nseq.c @@ -65,6 +65,7 @@ #undef PROG #define PROG nseq_main +int MAIN(int, char **); int MAIN(int argc, char **argv) { diff --git a/apps/pkcs12.c b/apps/pkcs12.c index dd008c468a..a54555b467 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -86,6 +86,9 @@ int print_attribs(BIO *out, STACK_OF(X509_ATTRIBUTE) *attrlst, char *name); void hex_prin(BIO *out, unsigned char *buf, int len); int alg_print(BIO *x, X509_ALGOR *alg); int cert_load(BIO *in, STACK_OF(X509) *sk); + +int MAIN(int, char **); + int MAIN(int argc, char **argv) { char *infile=NULL, *outfile=NULL, *keyname = NULL; diff --git a/apps/pkcs7.c b/apps/pkcs7.c index d7feafd2f5..f471cc77fd 100644 --- a/apps/pkcs7.c +++ b/apps/pkcs7.c @@ -78,6 +78,8 @@ * -print_certs */ +int MAIN(int, char **); + int MAIN(int argc, char **argv) { PKCS7 *p7=NULL; diff --git a/apps/pkcs8.c b/apps/pkcs8.c index cb55464f21..e3fa7d4bad 100644 --- a/apps/pkcs8.c +++ b/apps/pkcs8.c @@ -66,6 +66,7 @@ #include "apps.h" #define PROG pkcs8_main +int MAIN(int, char **); int MAIN(int argc, char **argv) { diff --git a/apps/req.c b/apps/req.c index ce42611bfb..14e8ef5a4f 100644 --- a/apps/req.c +++ b/apps/req.c @@ -136,6 +136,8 @@ static LHASH *req_conf=NULL; #define TYPE_DSA 2 #define TYPE_DH 3 +int MAIN(int, char **); + int MAIN(int argc, char **argv) { #ifndef NO_DSA diff --git a/apps/rsa.c b/apps/rsa.c index 1313ddc3e3..879b7ab522 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -86,6 +86,8 @@ * -pubout - Output a public key. */ +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int ret=1; diff --git a/apps/s_client.c b/apps/s_client.c index fc3e398cb4..ac19f4eed9 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -153,6 +153,8 @@ static void sc_usage(void) } +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int off=0; diff --git a/apps/s_server.c b/apps/s_server.c index 044d4c448d..a92db5cd1b 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -397,6 +397,8 @@ static int ebcdic_puts(BIO *bp, char *str) } #endif +int MAIN(int, char **); + int MAIN(int argc, char *argv[]) { short port=PORT; diff --git a/apps/s_time.c b/apps/s_time.c index 4f42681feb..39fd3b8b4d 100644 --- a/apps/s_time.c +++ b/apps/s_time.c @@ -388,6 +388,8 @@ static double tm_Time_F(int s) * MAIN - main processing area for client * real name depends on MONOLITH */ +int MAIN(int, char **); + int MAIN(int argc, char **argv) { double totalTime = 0.0; diff --git a/apps/sess_id.c b/apps/sess_id.c index 3d363d13eb..71d5aa0b7c 100644 --- a/apps/sess_id.c +++ b/apps/sess_id.c @@ -84,6 +84,9 @@ NULL }; static SSL_SESSION *load_sess_id(char *file, int format); + +int MAIN(int, char **); + int MAIN(int argc, char **argv) { SSL_SESSION *x=NULL; diff --git a/apps/smime.c b/apps/smime.c index 95bda8388f..9c84841168 100644 --- a/apps/smime.c +++ b/apps/smime.c @@ -80,6 +80,8 @@ static int save_certs(char *signerfile, STACK_OF(X509) *signers); #define SMIME_VERIFY 4 #define SMIME_PK7OUT 5 +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int operation = 0; diff --git a/apps/speed.c b/apps/speed.c index c4fd79f884..b3130def8b 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -238,6 +238,8 @@ static double Time_F(int s) #endif } +int MAIN(int, char **); + int MAIN(int argc, char **argv) { unsigned char *buf=NULL,*buf2=NULL; diff --git a/apps/spkac.c b/apps/spkac.c index e3f434d24c..e26a95d0fc 100644 --- a/apps/spkac.c +++ b/apps/spkac.c @@ -75,6 +75,8 @@ * -out arg - output file - default stdout */ +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int i,badops=0, ret = 1; diff --git a/apps/verify.c b/apps/verify.c index a69c5d88f8..df596ca042 100644 --- a/apps/verify.c +++ b/apps/verify.c @@ -74,6 +74,8 @@ static int check(X509_STORE *ctx,char *file, STACK_OF(X509)*other, int purpose); static STACK_OF(X509) *load_untrusted(char *file); static int v_verbose=0; +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int i,ret=1; diff --git a/apps/version.c b/apps/version.c index a567f34094..f5c9adc254 100644 --- a/apps/version.c +++ b/apps/version.c @@ -66,6 +66,8 @@ #undef PROG #define PROG version_main +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int i,ret=0; diff --git a/apps/x509.c b/apps/x509.c index 56e227160e..1e9072676a 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -141,6 +141,8 @@ static int x509_certify (X509_STORE *ctx,char *CAfile,const EVP_MD *digest, static int purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt); static int reqfile=0; +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int ret=1; |