aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-28 20:57:43 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-29 11:17:27 -0500
commitd328203f63a13da5556363380261d5091948ea96 (patch)
treeca01421ac62ac7ce5ea8d04c70012f1b8a536587
parent35e2d8d0485322558a8c4b726674a5293d6aec37 (diff)
downloadportable-d328203f63a13da5556363380261d5091948ea96.tar.gz
portable-d328203f63a13da5556363380261d5091948ea96.tar.bz2
portable-d328203f63a13da5556363380261d5091948ea96.zip
produce a error if platform has no arc4random hook
ok deraadt@ beck@
-rw-r--r--crypto/compat/arc4random.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/crypto/compat/arc4random.h b/crypto/compat/arc4random.h
index e4ecd06..8b88e86 100644
--- a/crypto/compat/arc4random.h
+++ b/crypto/compat/arc4random.h
@@ -1,16 +1,17 @@
1#ifdef __linux__ 1#if defined(__linux__)
2#include "arc4random_linux.h" 2#include "arc4random_linux.h"
3#endif
4 3
5#ifdef __APPLE__ 4#elif defined(__APPLE__)
6#include "arc4random_osx.h" 5#include "arc4random_osx.h"
7#endif
8 6
9#ifdef __sun 7#elif defined(__sun)
10#include "arc4random_solaris.h" 8#include "arc4random_solaris.h"
11#endif
12 9
13#ifdef __WIN32 10#elif defined(__WIN32)
14#include "arc4random_win.h" 11#include "arc4random_win.h"
12
13#else
14#error "No arc4random hooks defined for this platform."
15
15#endif 16#endif
16 17