From f365611ca32190a032db1e292ccf55f110acea9a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 28 Jun 2000 16:47:45 +0000 Subject: Undo the changes I just made. I'm not sure what I was thinking of. The message to everyone is "Do not hack OpenSSL when stressed"... --- apps/rand.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'apps/rand.c') diff --git a/apps/rand.c b/apps/rand.c index b0c50920a5..fa9bc023f4 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -15,7 +15,6 @@ /* -out file - write to file * -rand file:file - PRNG seed files - * -egd file - PRNG seed from EGD named socket * -base64 - encode output * num - write 'num' bytes */ @@ -27,7 +26,7 @@ int MAIN(int argc, char **argv) int i, r, ret = 1; int badopt; char *outfile = NULL; - char *inrand = NULL,*inegd=NULL; + char *inrand = NULL; int base64 = 0; BIO *out = NULL; int num = -1; @@ -56,13 +55,6 @@ int MAIN(int argc, char **argv) else badopt = 1; } - else if (strcmp(argv[i], "-egd") == 0) - { - if ((argv[i+1] != NULL) && (inegd == NULL)) - inegd = argv[++i]; - else - badopt = 1; - } else if (strcmp(argv[i], "-base64") == 0) { if (!base64) @@ -94,18 +86,14 @@ int MAIN(int argc, char **argv) BIO_printf(bio_err, "where options are\n"); BIO_printf(bio_err, "-out file - write to file\n"); BIO_printf(bio_err, "-rand file%cfile%c... - seed PRNG from files\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR); - BIO_printf(bio_err, "-egd file - seed PRNG from EGD named socket\n"); BIO_printf(bio_err, "-base64 - encode output\n"); goto err; } - app_RAND_load_file(NULL, bio_err, (inrand != NULL || inegd != NULL)); + app_RAND_load_file(NULL, bio_err, (inrand != NULL)); if (inrand != NULL) BIO_printf(bio_err,"%ld semi-random bytes loaded\n", app_RAND_load_files(inrand)); - if (inegd != NULL) - BIO_printf(bio_err,"%ld egd bytes loaded\n", - RAND_egd(inegd)); out = BIO_new(BIO_s_file()); if (out == NULL) -- cgit v1.2.3