summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_win.c
AgeCommit message (Collapse)Author
2014-02-25Avoid Windows 8 Getversion deprecated errors.Dr. Stephen Henson
Windows 8 SDKs complain that GetVersion() is deprecated. We only use GetVersion like this: (GetVersion() < 0x80000000) which checks if the Windows version is NT based. Use a macro check_winnt() which uses GetVersion() on older SDK versions and true otherwise.
2011-02-03Add FIPS support to the WIN32 build system.Dr. Stephen Henson
2010-03-22rand_win.c: fix logical bug in readscreen.Andy Polyakov
2010-02-17PR: 2100Dr. Stephen Henson
Submitted by: James Baker <jbaker@tableausoftware.com> et al. Workaround for slow Heap32Next on some versions of Windows.
2010-01-19rand_win.c: fix time limit logic.Andy Polyakov
2010-01-19rand_win.c: handle GetTickCount wrap-around.Andy Polyakov
2009-09-20Don't use __try+__except unless on VC++Dr. Stephen Henson
2009-07-24Update from 0.9.8-stable.Dr. Stephen Henson
2005-10-13Broaden compatibility amount Win32 headers even further [some don't haveAndy Polyakov
SIZE_T].
2005-09-22Broaden compatibility among Windows SDK versions. Elder versions don't haveAndy Polyakov
ULONG_PTR, so we replace it with equally wide SIZE_T.
2005-08-07Final(?) WinCE update.Andy Polyakov
2005-08-03WCE update, mostly typos.Andy Polyakov
2005-08-02Abstain from GUI calls in rand_win.c in NT service context.Andy Polyakov
2005-08-02Eliminate bogus #if WCEPLATFORM!=MS_HPC_PRO [which by the way unconditionallyAndy Polyakov
invalidated the whole clause] and replace it with #if _WIN32_WCE>=210.
2005-05-21Move _WIN32_WINNT definition from command line to e_os.h. The change isAndy Polyakov
inspired by VC6 failure report. In addition abstain from taking screen snapshots when running in NT service context.
2005-04-19Various Win32 and other fixes for warnings and compilation errors.Dr. Stephen Henson
Fix Win32 build system to use 'Makefile' instead of 'Makefile.ssl'.
2005-03-24undo Cygwin changeUlf Möller
2005-03-19Use Windows randomness code on CygwinUlf Möller
2004-07-21Make rand_win.c UNICODE savvy.Andy Polyakov
2004-01-04Update URILutz Jänicke
Submitted by: Gertjan van Oosten <gertjan@West.NL> PR: #804
2003-08-07Correct two problems, found by Martin Kochanski <cardbox@easynet.co.uk>:Richard Levitte
1. CreateToolhelp32Snapshot returns INVALID_HANDLE_VALUE, not NULL, on error. 2. On Windows CE, a snapshot handle is closed with CloseToolhelp32Snapshot, not CloseHandle.
2002-12-03Windows CE updates, contributed by Steven Reddie <smr@essemer.com.au>Richard Levitte
2002-11-15WinCE patchesRichard Levitte
2002-11-14Close the implicitely opened registry key.Richard Levitte
PR: 264
2002-02-21disable '#ifdef DEBUG' sectionsBodo Möller
2001-03-10Typo.Dr. Stephen Henson
2001-03-08old MSVC versions don't have rdtscUlf Möller
use _emit instead Pointed out by Jeremy Cooper <jeremy@baymoo.org>
2001-02-20Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte
missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
2001-01-12Disable RegQueryValueEx() call.Bodo Möller
Problem reported by "Wolfgang Marczy" <WMarczy@topcall.co.at> in a message to openssl-dev (19 Dec 2000 13:40:51 +0100).
2001-01-08Change RAND_poll for Unix to try a number of devices and only readRichard Levitte
them for a short period of time (actually, poll them with select(), then read() whatever is there), which is about 10ms (hard-coded value) each. Separate Windows and Unixly code, and start on a VMS variant that currently just returns 0.
2000-12-17Simplify preprocessor statements.Bodo Möller
2000-12-16Do not poll DEVRANDOM if weäre building without an file pointer API.Richard Levitte
Spotted by "David Schwartz" <davids@webmaster.com>.
2000-11-29fix for Borland CUlf Möller
2000-11-04Set the CryptoAPI randomness estimate back to 0.Ulf Möller
The randomness may not actually be very good (we don't know).
2000-11-03increase the value a bitUlf Möller
2000-09-21Changes by Jeffrey Altman <jaltman@columbia.edu> to make RAND_poll()Richard Levitte
work better in Win32. Verified by zhu qun-ying <qyzhu@krdl.org.sg>.
2000-09-18Going through performance statistics sometimes generates an exception,Richard Levitte
so disable that part. Reported by Jeffrey Altman <jaltman@columbia.edu>
2000-09-18cyclecount is only used when __GNUC__ isn't defined.Richard Levitte
2000-09-18Disable the net statistics gathering code, since different compilersRichard Levitte
disagree on the proper syntax and type names.
2000-09-18Jeffrey Altman reminds us to initialize some variables and ercommends the ↵Richard Levitte
use of LOadLibrary instead of GetModuleHandle
2000-09-17Jeffrey Altman <jaltman@columbia.edu> sent me a patch that fixes theRichard Levitte
problems with GetCursorInfo, but also adds network statistics and performance statistics where available.
2000-09-15Later, Jeffrey changed his mind. Apparently, GetCursorInfo exists butRichard Levitte
doesn't quite work on WinNT 4 earlier than SP6. It works fine on Windows 98 and Windows 2000. I'm disabling it for now. What's really needed is some kind of check to see if GetCursorInfo is safe to call, or alternatively, GetCursor or GetCursorPos could be used, according to Jeffrey.
2000-09-15Jeffrey Altman points out that GetQueueStatus() crashes on NT.Ulf Möller
2000-09-14Jeffrey Altman convinced me this patch was really needed, or there isRichard Levitte
no way to make sure GetCursorInfo will give us a valid answer.
2000-09-13Point to Peter Gutmann's revised paper.Ulf Möller
The copy at www.usenix.org is the old version.
2000-09-133 changes:Richard Levitte
- Make sure PCURSORINFO is defined even on systems that do not provide it. - Change the reference to Peter Gutmann's paper. - Make sure we don't walk the whole heap lists for performance reasons. Jeffrey Altman suggests following Peter Gutmann's advice to keep it to 50 heap entries per heap list.
2000-09-11A cast is needed or Borland C will complain.Richard Levitte
2000-07-21oops.Ulf Möller
2000-07-21don't print debug outputUlf Möller
2000-07-19Randomness polling function for Win9x.Ulf Möller