summaryrefslogtreecommitdiffstats
path: root/apps/rand.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-06-28 16:47:45 +0000
committerRichard Levitte <levitte@openssl.org>2000-06-28 16:47:45 +0000
commitf365611ca32190a032db1e292ccf55f110acea9a (patch)
tree5cd87b63feb2db1a4fa6c73e74d6fb3177e6aa57 /apps/rand.c
parent523c83ec9a200ccb35c21561078a258b61f51795 (diff)
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"...
Diffstat (limited to 'apps/rand.c')
-rw-r--r--apps/rand.c16
1 files changed, 2 insertions, 14 deletions
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)