dhparam.c (160815) | dhparam.c (215697) |
---|---|
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 { | 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 | 152 DH *dh=NULL; 153 int i,badops=0,text=0; 154#ifndef OPENSSL_NO_DSA 155 int dsaparam=0; 156#endif 157 BIO *in=NULL,*out=NULL; 158 int informat,outformat,check=0,noout=0,C=0,ret=1; 159 char *infile,*outfile,*prog; --- 102 unchanged lines hidden (view full) --- 262 BIO_printf(bio_err," the random number generator\n"); 263 BIO_printf(bio_err," -noout no output\n"); 264 goto end; 265 } 266 267 ERR_load_crypto_strings(); 268 269#ifndef OPENSSL_NO_ENGINE |
273 e = setup_engine(bio_err, engine, 0); | 270 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 --- | 271#endif 272 273 if (g && !num) 274 num = DEFBITS; 275 276#ifndef OPENSSL_NO_DSA 277 if (dsaparam) 278 { --- 276 unchanged lines hidden --- |