Deleted Added
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 *

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

327 else
328#endif
329 {
330 dh = DH_new();
331 BIO_printf(bio_err,"Generating DH parameters, %d bit long safe prime, generator %d\n",num,g);
332 BIO_printf(bio_err,"This is going to take a long time\n");
333 if(!dh || !DH_generate_parameters_ex(dh, num, g, &cb))
334 {
335 if(dh) DH_free(dh);
335 ERR_print_errors(bio_err);
336 goto end;
337 }
338 }
339
340 app_RAND_write_file(NULL, bio_err);
341 } else {
342

--- 217 unchanged lines hidden ---