summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_unix.c
AgeCommit message (Collapse)Author
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-17RT3548: Remove some obsolete platformsRich Salz
This commit removes BEOS. Reviewed-by: Richard Levitte <levitte@openssl.org>
2011-12-19PR: 2563Dr. Stephen Henson
Submitted by: Paul Green <Paul.Green@stratus.com> Reviewed by: steve Improved PRNG seeding for VOS.
2009-04-07Changes from 1.0.0-stable.Dr. Stephen Henson
2009-02-15Use new common flags and fix resulting warnings.Ben Laurie
2008-11-12Revert the size_t modifications from HEAD that had led to moreGeoff Thorpe
knock-on work than expected - they've been extracted into a patch series that can be completed elsewhere, or in a different branch, before merging back to HEAD.
2008-11-01More size_tification.Ben Laurie
2006-06-30use <poll.h> as by Single Unix SpecificationBodo Möller
2006-06-28always read in RAND_poll() if we can't use select because of a tooBodo Möller
large FD: it's non-blocking mode anyway
2006-06-27Use poll() when possible to gather Unix randomness entropyRichard Levitte
2006-04-11Add BeOS support.Ulf Möller
PR: 1312 Submitted by: Oliver Tappe <zooey@hirschkaefer.de> Reviewed by: Ulf Moeller
2005-07-22Fix some signed/unsigned warnings.Geoff Thorpe
2005-06-18Move the definition of DEVRANDOM for DJGPP from Configure to e_os.h.Richard Levitte
That should solve the issues with propagating it through the Makefiles. PR: 1110
2005-05-30DJGPP changes. Contributed by Doug Kaufman <dkaufman@rahul.net>Richard Levitte
2005-01-13Fix an "oops" typo! Well, it was a debugging left-over...Andy Polyakov
2005-01-13O_NOFOLLOW is not appropriate when opening /dev/* entries on Solaris.Andy Polyakov
PR: 998
2005-01-04DJGPP update.Andy Polyakov
PR: 989 Submitted by: Doug Kaufman
2004-03-15It was just pointed out to me that it's better to cast to double...Richard Levitte
2004-03-15Make sure that the last argument to RAND_add() is a float, or someRichard Levitte
compilers may complain.
2003-12-27Check if a random "file" is really a device file, and treat itRichard Levitte
specially if it is. Add a few OpenBSD-specific cases. This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
2003-11-28Netware-specific changes,Richard Levitte
PR: 780 Submitted by: Verdon Walker <VWalker@novell.com> Reviewed by: Richard Levitte
2002-11-28Cleanse memory using the new OPENSSL_cleanse() function.Richard Levitte
I've covered all the memset()s I felt safe modifying, but may have missed some.
2002-10-14Complete the VxWorks fix by implementing a NULL RAND_poll() for it.Richard Levitte
PR: 253
2002-10-09Add a few more VxWorks targets.Richard Levitte
Correct misspelled VXWORKS macros. Add VXWORKS identifying macros to e_os2.h. Add required inclusions and mappings for VxWorks in e_os.h. A few small modifications to make OpenSSL build and work on VxWorks. PR: 253, except for the change that was handled in an earlier commit, and a request for easy build of just parts of OpenSSL.
2002-06-20<sys/select.h> is included for AIX, when USE_SOCKETS is defined.Lutz Jänicke
Submitted by: Bernhard Simon <bs@bsws.zid.tuwien.ac.at> Reviewed by: PR:
2002-06-20AIX (V3) requires <sys/select.h> (included via e_os.h) for fd_set.Lutz Jänicke
Submitted by: Bernhard Simon <bs@bsws.zid.tuwien.ac.at> Reviewed by: PR:
2001-07-01Changes to have OpenSSL compile on OS/2.Richard Levitte
Contributed by "Brian Havard" <brianh@kheldar.apana.org.au>
2001-04-18fix md_rand.c locking bugsBodo Möller
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-02-19Make sure time() is properly declared.Richard Levitte
2001-01-09Add automatic query of EGD sockets to RAND_poll(). The EGD sockets areLutz Jänicke
only queried when the /dev/[u]random devices did not return enough entropy. Only the amount of entropy missing to reach the required minimum is queried, as EGD may be drained. Queried locations are: /etc/entropy, /var/run/egd-pool
2001-01-09Don't cheat: when only getting several bytes from each source, n is incrementedLutz Jänicke
correctly, but RAND_add(..,n) counts the increasing n several times. Only RAND_add(..,n) once entropy collection is finished.
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.