X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=apps%2Fdsaparam.c;h=118d974bb03e1e61b7c340d55ad5595824b59ea5;hb=54a29df0ec79db2e38c8b3a58a276fa47ae80199;hp=de1d0cc953ad6490b1ecbcbf114736c94e6c6caa;hpb=dfeab0689f69c0b4bd3480ffd37a9cacc2f17d9c;p=oweals%2Fopenssl.git diff --git a/apps/dsaparam.c b/apps/dsaparam.c index de1d0cc953..118d974bb0 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -56,18 +56,19 @@ * [including the GNU Public Licence.] */ +#ifndef NO_DSA #include #include #include #include #include "apps.h" -#include "bio.h" -#include "err.h" -#include "bn.h" -#include "rand.h" -#include "dsa.h" -#include "x509.h" -#include "pem.h" +#include +#include +#include +#include +#include +#include +#include #undef PROG #define PROG dsaparam_main @@ -83,15 +84,8 @@ * -genkey */ -#ifndef NOPROTO static void MS_CALLBACK dsa_cb(int p, int n, char *arg); -#else -static void MS_CALLBACK dsa_cb(); -#endif - -int MAIN(argc, argv) -int argc; -char **argv; +int MAIN(int argc, char **argv) { DSA *dsa=NULL; int i,badops=0,text=0; @@ -172,7 +166,7 @@ bad: BIO_printf(bio_err,"where options are\n"); BIO_printf(bio_err," -inform arg input format - one of DER TXT PEM\n"); BIO_printf(bio_err," -outform arg output format - one of DER TXT PEM\n"); - BIO_printf(bio_err," -in arg inout file\n"); + BIO_printf(bio_err," -in arg input file\n"); BIO_printf(bio_err," -out arg output file\n"); BIO_printf(bio_err," -text check the DSA parameters\n"); BIO_printf(bio_err," -C Output C code\n"); @@ -342,10 +336,7 @@ end: EXIT(ret); } -static void MS_CALLBACK dsa_cb(p, n, arg) -int p; -int n; -char *arg; +static void MS_CALLBACK dsa_cb(int p, int n, char *arg) { char c='*'; @@ -359,3 +350,4 @@ char *arg; p=n; #endif } +#endif