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

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

83 * -text
84 * -C
85 */
86
87int MAIN(int, char **);
88
89int MAIN(int argc, char **argv)
90 {
91 DH *dh=NULL;
92 int i,badops=0,text=0;
93 BIO *in=NULL,*out=NULL;
94 int informat,outformat,check=0,noout=0,C=0,ret=1;
95 char *infile,*outfile,*prog;
96#ifndef OPENSSL_NO_ENGINE
97 char *engine;
98#endif

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

181 BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n");
182#endif
183 goto end;
184 }
185
186 ERR_load_crypto_strings();
187
188#ifndef OPENSSL_NO_ENGINE
189 setup_engine(bio_err, engine, 0);
190#endif
191
192 in=BIO_new(BIO_s_file());
193 out=BIO_new(BIO_s_file());
194 if ((in == NULL) || (out == NULL))
195 {
196 ERR_print_errors(bio_err);
197 goto end;

--- 152 unchanged lines hidden ---