]> sourceware.org Git - newlib-cygwin.git/commit
Implement getentropy for Cygwin
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 18 Mar 2016 13:46:20 +0000 (14:46 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 18 Mar 2016 13:46:20 +0000 (14:46 +0100)
commitdcf31cdc994163b3ee5641545ae8706f3c10182f
treecc35cdafaf567f7d00d08f844c33141e9ab3c14b
parente0fc33322d507c0730b1d1517eb4b85181f0a2d9
Implement getentropy for Cygwin

* miscfuncs.cc (getentropy): Move fhandler_dev_random::crypt_gen_random
here and rename to getentropy.  Fix type and return values to match
getentropy requirements.
* miscfuncs.h (getentropy): Add prototype.
* fhandler.h (fhandler_dev_random::crypt_gen_random): Remove prototype.
* fhandler_random.cc (fhandler_dev_random::crypt_gen_random): Drop.
(fhandler_dev_random::write): Use getentropy instead.
(fhandler_dev_random::read): Ditto.
* fhandler_socket.cc (fhandler_socket::af_local_set_secret): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_random.cc
winsup/cygwin/fhandler_socket.cc
winsup/cygwin/miscfuncs.cc
winsup/cygwin/miscfuncs.h
This page took 0.030753 seconds and 5 git commands to generate.