|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1960645 ] OpenSSL RAND_file_name() on Windows when no "C" drive
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 12 May 2008 15:19:56 -0700
Bugs item #1960645, was opened at 2008-05-09 03:01
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
A customer of ours (we link with libCURL) had a Windows XP Professional machine with the situation of not having a "C" boot drive, the machine was configured with "F" as it's boot drive, and "C" is configured as the built-in flash card reader. Blech!
In this case, using libCURL to fetch an HTTPS URL caused an error dialog to appear on the customer's
I chased it down to the call in ssluse.c (line 252):
The work-around I put into our source tree VERY QUICKLY (and probably is not correct) is to replace that single line of "RAND_file_name(buf, BUFSIZE);" with the source code below (this fix lowers the randomness slightly for the case where customers do not have a "C" drive):
#ifdef _WIN32
if (tolower(pathToSystemDir[0]) == 'c')
BTW, libcurl is awesome, thanks for all the great code.
-- Brian Wilson
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
This patch is better placed in the OpenSSL code for any windows user who
----------------------------------------------------------------------
Comment By: Brian Wilson (brianwski)
Message:
I would definitely call this an OpenSSL bug (more on that below). But I
The OpenSSL file "crypto/rand/randfile.c" implements "RAND_file_name()"
Of course, maybe the OpenSSL guys would claim libCURL should set a HOME
> Any references to C: drive....
Not that I can find. This user has trouble with his "non-standard" config
-- BrianW
----------------------------------------------------------------------
Comment By: Dan Fandrich (dfandrich)
Message:
This sounds like a configuration problem or OpenSSL bug, not a libcurl
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info