int/dsa-fips.h int/dsa-keygen-fips186.c int/dsa-validate.c
if WINDOWS
-libcrypto_la_SOURCES += rnd-windows.c
+libcrypto_la_SOURCES += sysrng-windows.c
else
if HAVE_GETENTROPY
-libcrypto_la_SOURCES += rnd-getentropy.c
+libcrypto_la_SOURCES += sysrng-getentropy.c
else
-libcrypto_la_SOURCES += rnd-linux.c
+libcrypto_la_SOURCES += sysrng-linux.c
endif
endif
return 0;
}
+/* This is called when gnutls_global_init() is called for second time.
+ * It must check whether any resources are still available.
+ * The particular problem it solves is to verify that the urandom fd is still
+ * open (for applications that for some reason closed all fds */
int _rnd_system_entropy_check(void)
{
int ret;
get_entropy_func _rnd_get_system_entropy;
#define RND_NO_INCLUDES
-#include "../lib/nettle/rnd-linux.c"
+#include "../lib/nettle/sysrng-linux.c"
static volatile int stop_loop = 0;