Move more OS-specific functionality to arc4random.h headers.
authorbcook <bcook@openbsd.org>
Sun, 20 Jul 2014 20:51:13 +0000 (20:51 +0000)
committerbcook <bcook@openbsd.org>
Sun, 20 Jul 2014 20:51:13 +0000 (20:51 +0000)
commitd976644eacfa6d27cbbf4dafdfa72a873e2f234a
tree4f7a6bf5f4f3572bc6ac4755329cd876f433f38f
parent06f6ba91f21a4cc723e3160da76810de02085cf2
Move more OS-specific functionality to arc4random.h headers.

Move <sys/mman.h> and raise(SIGKILL) calls to OS-specific headers.
On OpenBSD, move thread_private.h as well to arc4random.h.
On Windows, use TerminateProcess on getentropy failure.

ok deraadt@
lib/libc/crypt/arc4random.c
lib/libc/crypt/arc4random.h
lib/libcrypto/arc4random/arc4random_linux.h
lib/libcrypto/arc4random/arc4random_osx.h
lib/libcrypto/arc4random/arc4random_solaris.h
lib/libcrypto/arc4random/arc4random_win.h
lib/libcrypto/crypto/arc4random_linux.h
lib/libcrypto/crypto/arc4random_osx.h
lib/libcrypto/crypto/arc4random_solaris.h
lib/libcrypto/crypto/arc4random_win.h