aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_win.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove /* foo.c */ commentsRich Salz2016-01-261-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>
* Continue standardising malloc style for libcryptoMatt Caswell2015-11-091-1/+1
| | | | | | | Continuing from previous commit ensure our style is consistent for malloc return checks. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Fix -Wshadow warnings in mingw builds.Andy Polyakov2015-09-291-3/+3
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Identify and move common internal libcrypto header filesRichard Levitte2015-05-141-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>
* Live code cleanup: remove #if 1 stuffRich Salz2015-02-061-2/+0
| | | | | | | For code bracketed by "#if 1" then remove the alternate "#else .. #endif" lines. Reviewed-by: Andy Polyakov <appro@openssl.org>
* Dead code removal: #if 0 bio, comp, randRich Salz2015-01-291-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>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-588/+585
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* indent has problems with comments that are on the right hand side of a line.Matt Caswell2015-01-221-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>
* Avoid deprecation problems in Visual Studio 13Matt Caswell2015-01-131-59/+2
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org>
* Further comment amendments to preserve formatting prior to source reformatMatt Caswell2015-01-061-1/+2
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* remove OPENSSL_FIPSAPIDr. Stephen Henson2014-12-081-1/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT2301: GetDIBits, not GetBitmapBits in rand_winJake Goulding2014-09-181-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>
* Avoid Windows 8 Getversion deprecated errors.Dr. Stephen Henson2014-02-251-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.
* Add FIPS support to the WIN32 build system.Dr. Stephen Henson2011-02-031-0/+2
|
* rand_win.c: fix logical bug in readscreen.Andy Polyakov2010-03-221-1/+1
|
* PR: 2100Dr. Stephen Henson2010-02-171-0/+1
| | | | | | Submitted by: James Baker <jbaker@tableausoftware.com> et al. Workaround for slow Heap32Next on some versions of Windows.
* rand_win.c: fix time limit logic.Andy Polyakov2010-01-191-5/+5
|
* rand_win.c: handle GetTickCount wrap-around.Andy Polyakov2010-01-191-10/+10
|
* Don't use __try+__except unless on VC++Dr. Stephen Henson2009-09-201-0/+24
|
* Update from 0.9.8-stable.Dr. Stephen Henson2009-07-241-2/+26
|
* Broaden compatibility amount Win32 headers even further [some don't haveAndy Polyakov2005-10-131-1/+1
| | | | SIZE_T].
* Broaden compatibility among Windows SDK versions. Elder versions don't haveAndy Polyakov2005-09-221-1/+1
| | | | ULONG_PTR, so we replace it with equally wide SIZE_T.
* Final(?) WinCE update.Andy Polyakov2005-08-071-8/+8
|
* WCE update, mostly typos.Andy Polyakov2005-08-031-1/+3
|
* Abstain from GUI calls in rand_win.c in NT service context.Andy Polyakov2005-08-021-29/+21
|
* Eliminate bogus #if WCEPLATFORM!=MS_HPC_PRO [which by the way unconditionallyAndy Polyakov2005-08-021-9/+10
| | | | invalidated the whole clause] and replace it with #if _WIN32_WCE>=210.
* Move _WIN32_WINNT definition from command line to e_os.h. The change isAndy Polyakov2005-05-211-1/+2
| | | | | inspired by VC6 failure report. In addition abstain from taking screen snapshots when running in NT service context.
* Various Win32 and other fixes for warnings and compilation errors.Dr. Stephen Henson2005-04-191-1/+2
| | | | Fix Win32 build system to use 'Makefile' instead of 'Makefile.ssl'.
* undo Cygwin changeUlf Möller2005-03-241-6/+20
|
* Use Windows randomness code on CygwinUlf Möller2005-03-191-2/+2
|
* Make rand_win.c UNICODE savvy.Andy Polyakov2004-07-211-41/+61
|
* Update URILutz Jänicke2004-01-041-1/+1
| | | | | | Submitted by: Gertjan van Oosten <gertjan@West.NL> PR: #804
* Correct two problems, found by Martin Kochanski <cardbox@easynet.co.uk>:Richard Levitte2003-08-071-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.
* Windows CE updates, contributed by Steven Reddie <smr@essemer.com.au>Richard Levitte2002-12-031-1/+1
|
* WinCE patchesRichard Levitte2002-11-151-27/+46
|
* Close the implicitely opened registry key.Richard Levitte2002-11-141-1/+10
| | | | PR: 264
* disable '#ifdef DEBUG' sectionsBodo Möller2002-02-211-3/+3
|
* Typo.Dr. Stephen Henson2001-03-101-1/+1
|
* old MSVC versions don't have rdtscUlf Möller2001-03-081-1/+2
| | | | | | use _emit instead Pointed out by Jeremy Cooper <jeremy@baymoo.org>
* Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte2001-02-201-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.
* Disable RegQueryValueEx() call.Bodo Möller2001-01-121-0/+5
| | | | | Problem reported by "Wolfgang Marczy" <WMarczy@topcall.co.at> in a message to openssl-dev (19 Dec 2000 13:40:51 +0100).
* Change RAND_poll for Unix to try a number of devices and only readRichard Levitte2001-01-081-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.
* Simplify preprocessor statements.Bodo Möller2000-12-171-6/+4
|
* Do not poll DEVRANDOM if weäre building without an file pointer API.Richard Levitte2000-12-161-0/+6
| | | | Spotted by "David Schwartz" <davids@webmaster.com>.
* fix for Borland CUlf Möller2000-11-291-1/+1
|
* Set the CryptoAPI randomness estimate back to 0.Ulf Möller2000-11-041-1/+1
| | | | The randomness may not actually be very good (we don't know).
* increase the value a bitUlf Möller2000-11-031-1/+1
|
* Changes by Jeffrey Altman <jaltman@columbia.edu> to make RAND_poll()Richard Levitte2000-09-211-69/+107
| | | | work better in Win32. Verified by zhu qun-ying <qyzhu@krdl.org.sg>.
* Going through performance statistics sometimes generates an exception,Richard Levitte2000-09-181-3/+7
| | | | | so disable that part. Reported by Jeffrey Altman <jaltman@columbia.edu>
* cyclecount is only used when __GNUC__ isn't defined.Richard Levitte2000-09-181-1/+2
|