aboutsummaryrefslogtreecommitdiff
path: root/networking/tls.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/tls.c')
-rw-r--r--networking/tls.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/networking/tls.c b/networking/tls.c
index 869456a6a..e34acd69f 100644
--- a/networking/tls.c
+++ b/networking/tls.c
@@ -349,14 +349,8 @@ static void dump_tls_record(const void *vp, int len)
349 349
350void FAST_FUNC tls_get_random(void *buf, unsigned len) 350void FAST_FUNC tls_get_random(void *buf, unsigned len)
351{ 351{
352#if !ENABLE_PLATFORM_MINGW32
353 if (len != open_read_close("/dev/urandom", buf, len)) 352 if (len != open_read_close("/dev/urandom", buf, len))
354 xfunc_die(); 353 xfunc_die();
355#else
356 int fd = mingw_open("/dev/urandom", O_RDONLY|O_SPECIAL);
357 if (fd < 0 || len != read_close(fd, buf, len))
358 xfunc_die();
359#endif
360} 354}
361 355
362static void xorbuf3(void *dst, const void *src1, const void *src2, unsigned count) 356static void xorbuf3(void *dst, const void *src1, const void *src2, unsigned count)