46 Commits (ea887211a60de537d8761e2a1d50ef25c65e9f3f)

Author SHA1 Message Date
  bcook ea887211a6 Backport getentropy changes from deraadt@ on MAIN 5 years ago
  bcook becf8cef00 ensure SYS_getrandom and GRND_NONBLOCK are both defined before using getrandom(2) 6 years ago
  beck 0e208737fa Switch Linux getrandom() usage to non-blocking mode, continuing to 7 years ago
  tb 646f43cf69 Update the link for the getentropy(2) manual to man.openbsd.org/ 8 years ago
  tj 41e193dea0 fix typo in comment; ok beck 8 years ago
  deraadt 31a603a934 unify files further 9 years ago
  deraadt 8e631f698c unify versions, so they are easier to diff. 9 years ago
  bcook fd9b2358f2 Remove unneeded sys/sysctl.h on linux. 9 years ago
  bcook 94be377a56 Not all Linux libc's include linux/sysctl.h in sys/sysctl.h. 9 years ago
  bcook 65192b885a sys/sysctl.h includes linux/sysctl.h, remove the extra unchecked include 9 years ago
  bcook d926e49a0b include header needed by older linux kernels 10 years ago
  bcook 7131c8971a preserve errno value on success. 10 years ago
  bcook 5fc23a1e55 only build the getrandom path if SYS_getrandom is defined. 10 years ago
  bcook e285ea02b5 getrandom(2) support for getentropy_linux 10 years ago
  bcook aca9f895fe better match proposed syscall api 10 years ago
  deraadt ef5581e5fc protect sysctl path with SYS__sysctl instead; from enh@google, ok bcook 10 years ago
  guenther 6fd1ff93b6 Use explicit_bzero() instead of memset() on buffers going out of scope. 10 years ago
  deraadt de41d1af59 cast from void * before math; enh@google 10 years ago
  deraadt d107050d39 Demonstrate how new linux getrandom() will be called, at least until 10 years ago
  deraadt 403b6a2c61 remove disabled main hook; we use phdr now; ok bcook 10 years ago
  deraadt 2d56bb72a9 tab love 10 years ago
  kettenis 2c152452b6 Only call getauxval(3) if HAVE_GETAUXVAL is defined. Fixes build on older 10 years ago
  deraadt 1efcd9909f Use dl_iterate_phdr() to iterate over the segments and throw the addresses 10 years ago
  deraadt 757bd836f8 Provide a link to the canonical API specification. 10 years ago
  beck 7f965a2eac Take away the use of the address of main as a source of entropy. Causes 10 years ago
  wouter ca0c9eb852 Remove signed/unsigned warning, statement before declaration and 10 years ago
  beck 279cc5b646 guard inclusion of sys/sysctl.h so we can detect at compile time and 10 years ago
  deraadt 96303f230c remove gratuitous differences, ok beck bcook 10 years ago
  beck b7e16f9d19 fix oops, accidental delete.. darn copying of files between machines 10 years ago
  beck 8de43bf12f j should be an int, like repeat 10 years ago
  beck 287fe24a2f unbreak last commit - but same intent, make re-seed less expensive 10 years ago
  deraadt bc5b290d46 repeat calls to getentrypy() with the same pid likely indicate reseeds. 10 years ago
  deraadt 0dedf80951 fix HD() misuse; from brent cook 10 years ago
  beck 344e312a56 AT_BASE returns us the *address* of the start of ld.so, so 10 years ago
  beck aed4dc98fb get the page of data at AT_SYSINFO_EHDR 10 years ago
  beck 802d41544e comment fixes from theo 10 years ago
  beck eaa7e91438 Possibly obtain a little bit of entropy from addresses returned 10 years ago
  beck 839b9ab79f O_NOFOLLOW would be very nice to have here if the version of linux 10 years ago
  beck dca54ba442 unbreak build of getentropy_sysctl - we need linux/sysctl.h, and 10 years ago
  beck 13d2b96f86 unbreak - main needs to be extern in here somewhere. 10 years ago
  deraadt 40d09112d0 repair indentation for an inner loop; shorten some macros and variable 10 years ago
  deraadt 7eb671100b hash in correct pointer 10 years ago
  beck ac370875b0 KNF 10 years ago
  deraadt 8f4e03ef5a indent 10 years ago
  otto 1878cbb6e4 rearrange so that the main function with the important comments is at the top 10 years ago
  beck a1d1946997 Work in progress on how to deal with the inherit unreliability of 10 years ago