dh.c (160815) | dh.c (215697) |
---|---|
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 { | 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#ifndef OPENSSL_NO_ENGINE 92 ENGINE *e = NULL; 93#endif | |
94 DH *dh=NULL; 95 int i,badops=0,text=0; 96 BIO *in=NULL,*out=NULL; 97 int informat,outformat,check=0,noout=0,C=0,ret=1; 98 char *infile,*outfile,*prog; 99#ifndef OPENSSL_NO_ENGINE 100 char *engine; 101#endif --- 82 unchanged lines hidden (view full) --- 184 BIO_printf(bio_err," -engine e use engine e, possibly a hardware device.\n"); 185#endif 186 goto end; 187 } 188 189 ERR_load_crypto_strings(); 190 191#ifndef OPENSSL_NO_ENGINE | 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 |
192 e = setup_engine(bio_err, engine, 0); | 189 setup_engine(bio_err, engine, 0); |
193#endif 194 195 in=BIO_new(BIO_s_file()); 196 out=BIO_new(BIO_s_file()); 197 if ((in == NULL) || (out == NULL)) 198 { 199 ERR_print_errors(bio_err); 200 goto end; --- 152 unchanged lines hidden --- | 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 --- |