summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto/arc4random_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/crypto/arc4random_win.h')
-rw-r--r--src/lib/libcrypto/crypto/arc4random_win.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto/arc4random_win.h b/src/lib/libcrypto/crypto/arc4random_win.h
index 1e044de109..b7a5a36013 100644
--- a/src/lib/libcrypto/crypto/arc4random_win.h
+++ b/src/lib/libcrypto/crypto/arc4random_win.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: arc4random_win.h,v 1.3 2014/07/20 16:59:31 bcook Exp $ */ 1/* $OpenBSD: arc4random_win.h,v 1.4 2014/07/20 20:51:13 bcook Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, David Mazieres <dm@uun.org> 4 * Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -42,6 +42,12 @@ static volatile HANDLE arc4random_mtx = NULL;
42 42
43#define _ARC4_UNLOCK() ReleaseMutex(arc4random_mtx) 43#define _ARC4_UNLOCK() ReleaseMutex(arc4random_mtx)
44 44
45static inline void
46_getentropy_fail(void)
47{
48 TerminateProcess(GetCurrentProcess(), 0);
49}
50
45static inline int 51static inline int
46_rs_allocate(struct _rs **rsp, struct _rsx **rsxp) 52_rs_allocate(struct _rs **rsp, struct _rsx **rsxp)
47{ 53{