Deleted Added
sdiff udiff text old ( 160815 ) new ( 215697 )
full compact
1/* apps/dhparam.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 135 unchanged lines hidden (view full) ---

144 */
145
146static int MS_CALLBACK dh_cb(int p, int n, BN_GENCB *cb);
147
148int MAIN(int, char **);
149
150int MAIN(int argc, char **argv)
151 {
152#ifndef OPENSSL_NO_ENGINE
153 ENGINE *e = NULL;
154#endif
155 DH *dh=NULL;
156 int i,badops=0,text=0;
157#ifndef OPENSSL_NO_DSA
158 int dsaparam=0;
159#endif
160 BIO *in=NULL,*out=NULL;
161 int informat,outformat,check=0,noout=0,C=0,ret=1;
162 char *infile,*outfile,*prog;

--- 102 unchanged lines hidden (view full) ---

265 BIO_printf(bio_err," the random number generator\n");
266 BIO_printf(bio_err," -noout no output\n");
267 goto end;
268 }
269
270 ERR_load_crypto_strings();
271
272#ifndef OPENSSL_NO_ENGINE
273 e = setup_engine(bio_err, engine, 0);
274#endif
275
276 if (g && !num)
277 num = DEFBITS;
278
279#ifndef OPENSSL_NO_DSA
280 if (dsaparam)
281 {

--- 276 unchanged lines hidden ---