Precautions against using the PRNG uninitialized: RAND_bytes() now
returns int (1 = ok, 0 = not seeded). New function RAND_add() is the same as RAND_seed() but takes an estimate of the entropy as an additional argument.
This commit is contained in:
@@ -108,7 +108,7 @@ int ssl2_connect(SSL *s)
|
||||
void (*cb)()=NULL;
|
||||
int new_state,state;
|
||||
|
||||
RAND_seed(&l,sizeof(l));
|
||||
RAND_add(&l,sizeof(l),0);
|
||||
ERR_clear_error();
|
||||
clear_sys_error();
|
||||
|
||||
|
Reference in New Issue
Block a user