I don't understand why you need this patch?
OpenSSL is not compiled as a UNICODE application.
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_005A_01C024C5.4108D8F0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
>
> Oops - mixed two lines.
> #ifdef UNICODE
> regqueryvalueex = (REGQUERYVALUEEX)
> GetProcAddress(advapi,"RegQueryValueExW");
> #else
> regqueryvalueex = (REGQUERYVALUEEX)
> GetProcAddress(advapi,"RegQueryValueExA");
> #endif
>
> .. is much better in theory (but works almost as well)
> Corrected patch is attached.
>
> Risto
> ----------------------------------
> Hello,
>
> crypto/rand/rand_win.c assumes that function
> RegQueryValueEx, exported by advapi32.dll, is linked in
> statically.
> As advapi32.lib is not linked in it gives build error.
>
> Attached 'diff -w' patch to crypto/rand/rand_win.c tryes to fix the issue.
>
> Tested on WinNT; Win32 API returns ERROR_SUCCESS,
> randomness of returned data is not checked.
>
>
> Best regards,
> Risto
>
> ------=_NextPart_000_005A_01C024C5.4108D8F0
> Content-Type: application/octet-stream;
> name="rand_win.diff"
> Content-Disposition: attachment;
> filename="rand_win.diff"
> Content-Transfer-Encoding: quoted-printable
>
> 170a171
> > typedef LONG (WINAPI *REGQUERYVALUEEX)(HKEY, LPCTSTR, LPDWORD, =
> LPDWORD, LPBYTE, LPDWORD);
> 204d204
> <=20
> 256a257,258
> > if (advapi)
> > {
> 269a272
> > REGQUERYVALUEEX regqueryvalueex =3D NULL;
> 270a274,280
> > #ifdef UNICODE
> > regqueryvalueex =3D (REGQUERYVALUEEX) =
> GetProcAddress(advapi,"RegQueryValueExW");
> > #else
> > regqueryvalueex =3D (REGQUERYVALUEEX) =
> GetProcAddress(advapi,"RegQueryValueExA");
> > #endif
> > if (regqueryvalueex !=3D NULL)
> > {
> 279c289
> < rc =3D RegQueryValueEx(HKEY_PERFORMANCE_DATA, "Global",
> ---
> > rc =3D regqueryvalueex(HKEY_PERFORMANCE_DATA, =
> "Global",
> 293,295c303
> <=20
> < if (advapi)
> < {
> ---
> > }
>
> ------=_NextPart_000_005A_01C024C5.4108D8F0--
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> Development Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
>
Jeffrey Altman * Sr.Software Designer
The Kermit Project * Columbia University
612 West 115th St * New York, NY * 10025 * USA
http://www.kermit-project.org/ * [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]