The code in RAND_poll() assumes you are using the current Win32
Platform SDK. If it does not compile, you are using an old set of
headers.
You probably need to update mingw32
> Content-Type: text/plain; charset=us-ascii;
> name="patch"
> Content-Disposition: inline;
> filename="patch"
> Content-Transfer-Encoding: 7bit
>
> --- org/rand_win.c Thu Sep 14 13:35:56 2000
> +++ rand/rand_win.c Thu Sep 14 14:00:32 2000
> @@ -119,7 +119,10 @@
> # define _WIN32_WINNT 0x0400
> #endif
> #include <wincrypt.h>
> +#if defined(WIN32_WINDOWS) || (_WIN32_WINNT >= 0x0500)
> +#define _USE_TLHELP32_H
> #include <tlhelp32.h>
> +#endif
>
> /* Intel hardware RNG CSP -- available from
> * http://developer.intel.com/design/security/rng/redist_license.htm
> @@ -148,6 +151,7 @@
> typedef BOOL (WINAPI *GETCURSORINFO)(PCURSORINFO);
> typedef DWORD (WINAPI *GETQUEUESTATUS)(UINT);
>
> +#ifdef _USE_TLHELP32_H
> typedef HANDLE (WINAPI *CREATETOOLHELP32SNAPSHOT)(DWORD, DWORD);
> typedef BOOL (WINAPI *HEAP32FIRST)(LPHEAPENTRY32, DWORD, DWORD);
> typedef BOOL (WINAPI *HEAP32NEXT)(LPHEAPENTRY32);
> @@ -155,6 +159,7 @@
> typedef BOOL (WINAPI *PROCESS32)(HANDLE, LPPROCESSENTRY32);
> typedef BOOL (WINAPI *THREAD32)(HANDLE, LPTHREADENTRY32);
> typedef BOOL (WINAPI *MODULE32)(HANDLE, LPMODULEENTRY32);
> +#endif
>
> int RAND_poll(void)
> {
> @@ -256,7 +261,7 @@
> RAND_add(&w, sizeof(w), 0);
> }
> }
> -
> +#ifdef _USE_TLHELP32_H
> /* Toolhelp32 snapshot: enumerate processes, threads, modules and heap
> * http://msdn.microsoft.com/library/psdk/winbase/toolhelp_5pfd.htm
> * (Win 9x only, not available on NT)
> @@ -352,6 +357,7 @@
> CloseHandle(handle);
> }
> }
> +#endif
>
> #ifdef DEBUG
> printf("Exiting RAND_poll\n");
>
> --------------F9286D4790FFE01D65AFCA3D--
>
> ______________________________________________________________________
> 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]