Loading crypto/rand/rand_unix.c +6 −3 Original line number Diff line number Diff line Loading @@ -155,7 +155,8 @@ int RAND_poll(void) #ifdef DEVRANDOM static const char *randomfiles[] = { DEVRANDOM }; struct stat randomstats[sizeof(randomfiles)/sizeof(randomfiles[0])]; int fd,i; int fd; unsigned int i; #endif #ifdef DEVRANDOM_EGD static const char *egdsockets[] = { DEVRANDOM_EGD, NULL }; Loading @@ -168,7 +169,8 @@ int RAND_poll(void) * have this. Use /dev/urandom if you can as /dev/random may block * if it runs out of random entries. */ for (i=0; i<sizeof(randomfiles)/sizeof(randomfiles[0]) && n < ENTROPY_NEEDED; i++) for (i = 0; (i < sizeof(randomfiles)/sizeof(randomfiles[0])) && (n < ENTROPY_NEEDED); i++) { if ((fd = open(randomfiles[i], O_RDONLY #ifdef O_NONBLOCK Loading @@ -185,7 +187,8 @@ int RAND_poll(void) { struct timeval t = { 0, 10*1000 }; /* Spend 10ms on each file. */ int r,j; int r; unsigned int j; fd_set fset; struct stat *st=&randomstats[i]; Loading ssl/d1_clnt.c +1 −1 Original line number Diff line number Diff line Loading @@ -541,7 +541,7 @@ int dtls1_client_hello(SSL *s) { unsigned char *buf; unsigned char *p,*d; int i,j; unsigned int i,j; unsigned long Time,l; SSL_COMP *comp; Loading ssl/d1_srvr.c +2 −1 Original line number Diff line number Diff line Loading @@ -677,7 +677,8 @@ int dtls1_send_server_hello(SSL *s) { unsigned char *buf; unsigned char *p,*d; int i,sl; int i; unsigned int sl; unsigned long l,Time; if (s->state == SSL3_ST_SW_SRVR_HELLO_A) Loading Loading
crypto/rand/rand_unix.c +6 −3 Original line number Diff line number Diff line Loading @@ -155,7 +155,8 @@ int RAND_poll(void) #ifdef DEVRANDOM static const char *randomfiles[] = { DEVRANDOM }; struct stat randomstats[sizeof(randomfiles)/sizeof(randomfiles[0])]; int fd,i; int fd; unsigned int i; #endif #ifdef DEVRANDOM_EGD static const char *egdsockets[] = { DEVRANDOM_EGD, NULL }; Loading @@ -168,7 +169,8 @@ int RAND_poll(void) * have this. Use /dev/urandom if you can as /dev/random may block * if it runs out of random entries. */ for (i=0; i<sizeof(randomfiles)/sizeof(randomfiles[0]) && n < ENTROPY_NEEDED; i++) for (i = 0; (i < sizeof(randomfiles)/sizeof(randomfiles[0])) && (n < ENTROPY_NEEDED); i++) { if ((fd = open(randomfiles[i], O_RDONLY #ifdef O_NONBLOCK Loading @@ -185,7 +187,8 @@ int RAND_poll(void) { struct timeval t = { 0, 10*1000 }; /* Spend 10ms on each file. */ int r,j; int r; unsigned int j; fd_set fset; struct stat *st=&randomstats[i]; Loading
ssl/d1_clnt.c +1 −1 Original line number Diff line number Diff line Loading @@ -541,7 +541,7 @@ int dtls1_client_hello(SSL *s) { unsigned char *buf; unsigned char *p,*d; int i,j; unsigned int i,j; unsigned long Time,l; SSL_COMP *comp; Loading
ssl/d1_srvr.c +2 −1 Original line number Diff line number Diff line Loading @@ -677,7 +677,8 @@ int dtls1_send_server_hello(SSL *s) { unsigned char *buf; unsigned char *p,*d; int i,sl; int i; unsigned int sl; unsigned long l,Time; if (s->state == SSL3_ST_SW_SRVR_HELLO_A) Loading