curl-library
Re: SSL random initialization
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 26 Oct 2004 16:37:58 +0200 (CEST)
Date: Tue, 26 Oct 2004 16:37:58 +0200 (CEST)
On Tue, 26 Oct 2004, Joerg Mueller-Tolk wrote:
> What else would seed the random number generator, i.e. on a Windows machine?
RAND_screen() is used on Windows machines.
But really, I don't know why this happens for you. I'm just assuming since
OpenSSL says that, it must be problem with the seeding in lib/ssluse.c.
>> Consider providing your own random source (file) with CURLOPT_RANDOM_FILE.
>
> As I understand the manual, It takes the content of the file as seed.
> I suppose it is enough to set this option at the very first connection and
> the file can be removed afterwards?
Yes that should be enough. And set CURLOPT_RANDOM_FILE to NULL again.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-10-26