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"...
This commit is contained in:
@@ -54,7 +54,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <openssl/rand.h>
|
||||
|
||||
/* Query the EGD <URL: http://www.lothar.com/tech/crypto/>.
|
||||
@@ -84,17 +83,12 @@ int RAND_egd_bytes(const char *path,int bytes)
|
||||
|
||||
int RAND_egd(const char *path)
|
||||
{
|
||||
const char *s;
|
||||
int ret = -1;
|
||||
struct sockaddr_un addr;
|
||||
int len, num;
|
||||
int fd = -1;
|
||||
unsigned char buf[256];
|
||||
|
||||
s=getenv("RANDEGD");
|
||||
if (s != NULL)
|
||||
path = s;
|
||||
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
addr.sun_family = AF_UNIX;
|
||||
if (strlen(path) > sizeof(addr.sun_path))
|
||||
@@ -121,17 +115,12 @@ int RAND_egd(const char *path)
|
||||
|
||||
int RAND_egd_bytes(const char *path,int bytes)
|
||||
{
|
||||
const char *s;
|
||||
int ret = 0;
|
||||
struct sockaddr_un addr;
|
||||
int len, num;
|
||||
int fd = -1;
|
||||
unsigned char buf[255];
|
||||
|
||||
s=getenv("RANDEGD");
|
||||
if (s != NULL)
|
||||
path = s;
|
||||
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
addr.sun_family = AF_UNIX;
|
||||
if (strlen(path) > sizeof(addr.sun_path))
|
||||
|
||||
Reference in New Issue
Block a user