Loading lib/ssluse.c +8 −6 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ #include "formdata.h" /* for the boundary function */ #ifdef USE_SSLEAY #include <openssl/rand.h> static char global_passwd[64]; Loading Loading @@ -78,7 +79,6 @@ static int random_the_seed(struct connectdata *conn) { char *buf = conn->data->buffer; /* point to the big buffer */ int ret; int nread=0; /* Q: should we add support for a random file name as a libcurl option? Loading Loading @@ -106,12 +106,14 @@ int random_the_seed(struct connectdata *conn) #if defined(HAVE_RAND_EGD) && defined(EGD_SOCKET) /* only available in OpenSSL 0.9.5 and later */ /* EGD_SOCKET is set at configure time */ ret = RAND_egd(EGD_SOCKET); { int ret = RAND_egd(EGD_SOCKET); if(-1 != ret) { nread += ret; if(seed_enough(conn, nread)) return nread; } } #endif /* If we get here, it means we need to seed the PRNG using a "silly" Loading Loading
lib/ssluse.c +8 −6 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ #include "formdata.h" /* for the boundary function */ #ifdef USE_SSLEAY #include <openssl/rand.h> static char global_passwd[64]; Loading Loading @@ -78,7 +79,6 @@ static int random_the_seed(struct connectdata *conn) { char *buf = conn->data->buffer; /* point to the big buffer */ int ret; int nread=0; /* Q: should we add support for a random file name as a libcurl option? Loading Loading @@ -106,12 +106,14 @@ int random_the_seed(struct connectdata *conn) #if defined(HAVE_RAND_EGD) && defined(EGD_SOCKET) /* only available in OpenSSL 0.9.5 and later */ /* EGD_SOCKET is set at configure time */ ret = RAND_egd(EGD_SOCKET); { int ret = RAND_egd(EGD_SOCKET); if(-1 != ret) { nread += ret; if(seed_enough(conn, nread)) return nread; } } #endif /* If we get here, it means we need to seed the PRNG using a "silly" Loading