diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-26 13:37:43 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-26 15:19:25 +0200 |
commit | 972bf4d69187fa940e039180fc4bdb7eaeee4f62 (patch) | |
tree | fdbf90113b47bd8adda2236d04c19f1e8d8b26a7 /lib/nettle | |
parent | 6953f021907ee9bc95380d576debbc653436b96a (diff) | |
download | gnutls-972bf4d69187fa940e039180fc4bdb7eaeee4f62.tar.gz |
tests: added unit test for linux _rnd_get_system_entropygetrandom-fix
This tests whether the function can operate as expected while being
interrupted by signals.
Diffstat (limited to 'lib/nettle')
-rw-r--r-- | lib/nettle/rnd-linux.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/nettle/rnd-linux.c b/lib/nettle/rnd-linux.c index 3ad9056cb3..a0a86d7826 100644 --- a/lib/nettle/rnd-linux.c +++ b/lib/nettle/rnd-linux.c @@ -25,14 +25,13 @@ * getrandom() -> /dev/urandom, where "->" indicates fallback. */ -#include "gnutls_int.h" -#include "errors.h" -#include <locks.h> -#include <num.h> -#include <nettle/yarrow.h> -#include <errno.h> -#include <rnd-common.h> -#include <hash-pjw-bare.h> +#ifndef RND_NO_INCLUDES +# include "gnutls_int.h" +# include "errors.h" +# include <num.h> +# include <errno.h> +# include <rnd-common.h> +#endif #include <sys/types.h> #include <sys/stat.h> @@ -46,7 +45,6 @@ #include <sys/stat.h> #include <sys/time.h> #include <fcntl.h> -#include <locks.h> static int _gnutls_urandom_fd = -1; static ino_t _gnutls_urandom_fd_ino = 0; |