#include "apps.h"
#include <openssl/crypto.h>
#include <openssl/pem.h>
-#include <openssl/rand.h>
#include <openssl/err.h>
#undef PROG
char *to = NULL, *from = NULL, *subject = NULL;
char *CAfile = NULL, *CApath = NULL;
char *passargin = NULL, *passin = NULL;
- char *inrand = NULL,*inegd=NULL;
+ char *inrand = NULL;
int need_rand = 0;
args = argv + 1;
inrand = *args;
} else badarg = 1;
need_rand = 1;
- } else if (!strcmp(*args,"-egd")) {
- if (args[1]) {
- args++;
- inegd = *args;
- } else badarg = 1;
- need_rand = 1;
} else if (!strcmp(*args,"-passin")) {
if (args[1]) {
args++;
BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
BIO_printf(bio_err, " the random number generator\n");
- BIO_printf(bio_err, "-egd file load random seed from EGD socket\n");
BIO_printf (bio_err, "cert.pem recipient certificate(s) for encryption\n");
goto end;
}
}
if (need_rand) {
- 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));
}
ret = 2;