aboutsummaryrefslogtreecommitdiff
path: root/crypto/rand/rand_win.c
AgeCommit message (Collapse)AuthorFilesLines
2016-02-05GH601: Various spelling fixes.FdaSilvaYY1-1/+1
Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2016-01-26Remove /* foo.c */ commentsRich Salz1-1/+0
This was done by the following find . -name '*.[ch]' | /tmp/pl where /tmp/pl is the following three-line script: print unless $. == 1 && m@/\* .*\.[ch] \*/@; close ARGV if eof; # Close file to reset $. And then some hand-editing of other files. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2015-11-09Continue standardising malloc style for libcryptoMatt Caswell1-1/+1
Continuing from previous commit ensure our style is consistent for malloc return checks. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-09-29Fix -Wshadow warnings in mingw builds.Andy Polyakov1-3/+3
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-05-14Identify and move common internal libcrypto header filesRichard Levitte1-1/+1
There are header files in crypto/ that are used by a number of crypto/ submodules. Move those to crypto/include/internal and adapt the affected source code and Makefiles. The header files that got moved are: crypto/cryptolib.h crypto/md32_common.h Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-02-06Live code cleanup: remove #if 1 stuffRich Salz1-2/+0
For code bracketed by "#if 1" then remove the alternate "#else .. #endif" lines. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-29Dead code removal: #if 0 bio, comp, randRich Salz1-10/+0
The start of removing dead code. A remaining #if 0 in bss_conn.c needs more thought. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell1-588/+585
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22indent has problems with comments that are on the right hand side of a line.Matt Caswell1-6/+7
Sometimes it fails to format them very well, and sometimes it corrupts them! This commit moves some particularly problematic ones. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-13Avoid deprecation problems in Visual Studio 13Matt Caswell1-59/+2
Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-06Further comment amendments to preserve formatting prior to source reformatMatt Caswell1-1/+2
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove OPENSSL_FIPSAPIDr. Stephen Henson1-1/+1
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-09-18RT2301: GetDIBits, not GetBitmapBits in rand_winJake Goulding1-18/+19
GetDIBits has been around since Windows2000 and BitBitmapBits is an old Win16 compatibility function that is much slower. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-02-25Avoid Windows 8 Getversion deprecated errors.Dr. Stephen Henson1-1/+1
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 Henson1-0/+2
2010-03-22rand_win.c: fix logical bug in readscreen.Andy Polyakov1-1/+1
2010-02-17PR: 2100Dr. Stephen Henson1-0/+1
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 Polyakov1-5/+5
2010-01-19rand_win.c: handle GetTickCount wrap-around.Andy Polyakov1-10/+10
2009-09-20Don't use __try+__except unless on VC++Dr. Stephen Henson1-0/+24
2009-07-24Update from 0.9.8-stable.Dr. Stephen Henson1-2/+26
2005-10-13Broaden compatibility amount Win32 headers even further [some don't haveAndy Polyakov1-1/+1
SIZE_T].
2005-09-22Broaden compatibility among Windows SDK versions. Elder versions don't haveAndy Polyakov1-1/+1
ULONG_PTR, so we replace it with equally wide SIZE_T.
2005-08-07Final(?) WinCE update.Andy Polyakov1-8/+8
2005-08-03WCE update, mostly typos.Andy Polyakov1-1/+3
2005-08-02Abstain from GUI calls in rand_win.c in NT service context.Andy Polyakov1-29/+21
2005-08-02Eliminate bogus #if WCEPLATFORM!=MS_HPC_PRO [which by the way unconditionallyAndy Polyakov1-9/+10
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 Polyakov1-1/+2
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 Henson1-1/+2
Fix Win32 build system to use 'Makefile' instead of 'Makefile.ssl'.
2005-03-24undo Cygwin changeUlf Möller1-6/+20
2005-03-19Use Windows randomness code on CygwinUlf Möller1-2/+2
2004-07-21Make rand_win.c UNICODE savvy.Andy Polyakov1-41/+61
2004-01-04Update URILutz Jänicke1-1/+1
Submitted by: Gertjan van Oosten <gertjan@West.NL> PR: #804
2003-08-07Correct two problems, found by Martin Kochanski <cardbox@easynet.co.uk>:Richard Levitte1-4/+10
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 Levitte1-1/+1
2002-11-15WinCE patchesRichard Levitte1-27/+46
2002-11-14Close the implicitely opened registry key.Richard Levitte1-1/+10
PR: 264
2002-02-21disable '#ifdef DEBUG' sectionsBodo Möller1-3/+3
2001-03-10Typo.Dr. Stephen Henson1-1/+1
2001-03-08old MSVC versions don't have rdtscUlf Möller1-1/+2
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 Levitte1-1/+1
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öller1-0/+5
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 Levitte1-49/+0
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öller1-6/+4
2000-12-16Do not poll DEVRANDOM if weäre building without an file pointer API.Richard Levitte1-0/+6
Spotted by "David Schwartz" <davids@webmaster.com>.
2000-11-29fix for Borland CUlf Möller1-1/+1
2000-11-04Set the CryptoAPI randomness estimate back to 0.Ulf Möller1-1/+1
The randomness may not actually be very good (we don't know).
2000-11-03increase the value a bitUlf Möller1-1/+1
2000-09-21Changes by Jeffrey Altman <jaltman@columbia.edu> to make RAND_poll()Richard Levitte1-69/+107
work better in Win32. Verified by zhu qun-ying <qyzhu@krdl.org.sg>.
2000-09-18Going through performance statistics sometimes generates an exception,Richard Levitte1-3/+7
so disable that part. Reported by Jeffrey Altman <jaltman@columbia.edu>