mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-28 12:12:16 -05:00
Removed unnecessary Windows-only code for seeding openssl's RNG.
openssl seeds itself with CryptGenRandom on Windows in the same manner as /dev/(u)random on other OSes.
This commit is contained in:
parent
a22816fbbd
commit
bbb81af550
@ -106,15 +106,6 @@ _SSL_context_init (void (*info_cb_func))
|
|||||||
/* used in SSL_connect(), SSL_accept() */
|
/* used in SSL_connect(), SSL_accept() */
|
||||||
SSL_CTX_set_info_callback (ctx, info_cb_func);
|
SSL_CTX_set_info_callback (ctx, info_cb_func);
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
/* under win32, OpenSSL needs to be seeded with some randomness */
|
|
||||||
for (i = 0; i < 128; i++)
|
|
||||||
{
|
|
||||||
r = rand ();
|
|
||||||
RAND_seed ((unsigned char *)&r, sizeof (r));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return(ctx);
|
return(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user