aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-17 23:58:46 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-18 09:19:23 -0500
commit1b1bce16b15cbe3bc7394f7876cb064ef5b8e7ab (patch)
treefa6f281564a377ff8b453f21816d8be00bf759f5 /crypto
parentd697fdb4afb08bb46027a5efd1f8040bfdb8380e (diff)
downloadportable-1b1bce16b15cbe3bc7394f7876cb064ef5b8e7ab.tar.gz
portable-1b1bce16b15cbe3bc7394f7876cb064ef5b8e7ab.tar.bz2
portable-1b1bce16b15cbe3bc7394f7876cb064ef5b8e7ab.zip
update to newly-refactored arc4random compatibility shims
the thread-private bits can move next ok beck@
Diffstat (limited to 'crypto')
-rw-r--r--crypto/Makefile.am.tpl5
-rw-r--r--crypto/compat/arc4random.h16
2 files changed, 21 insertions, 0 deletions
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl
index d79a270..ac87a77 100644
--- a/crypto/Makefile.am.tpl
+++ b/crypto/Makefile.am.tpl
@@ -69,6 +69,11 @@ endif
69 69
70noinst_HEADERS = des/ncbc_enc.c 70noinst_HEADERS = des/ncbc_enc.c
71noinst_HEADERS += compat/thread_private.h 71noinst_HEADERS += compat/thread_private.h
72noinst_HEADERS += compat/arc4random.h
73noinst_HEADERS += compat/arc4random_linux.h
74noinst_HEADERS += compat/arc4random_osx.h
75noinst_HEADERS += compat/arc4random_solaris.h
76noinst_HEADERS += compat/arc4random_win.h
72noinst_HEADERS += compat/chacha_private.h 77noinst_HEADERS += compat/chacha_private.h
73libcrypto_la_SOURCES = 78libcrypto_la_SOURCES =
74EXTRA_libcrypto_la_SOURCES = 79EXTRA_libcrypto_la_SOURCES =
diff --git a/crypto/compat/arc4random.h b/crypto/compat/arc4random.h
new file mode 100644
index 0000000..e4ecd06
--- /dev/null
+++ b/crypto/compat/arc4random.h
@@ -0,0 +1,16 @@
1#ifdef __linux__
2#include "arc4random_linux.h"
3#endif
4
5#ifdef __APPLE__
6#include "arc4random_osx.h"
7#endif
8
9#ifdef __sun
10#include "arc4random_solaris.h"
11#endif
12
13#ifdef __WIN32
14#include "arc4random_win.h"
15#endif
16