update to newly-refactored arc4random compatibility shims

the thread-private bits can move next

ok beck@
This commit is contained in:
Brent Cook 2014-07-17 23:58:46 -05:00
parent d697fdb4af
commit 1b1bce16b1
4 changed files with 23 additions and 0 deletions

1
.gitignore vendored
View File

@ -110,6 +110,7 @@ crypto/compat/strlcpy.c
crypto/compat/strtonum.c
crypto/compat/timingsafe_bcmp.c
crypto/compat/timingsafe_memcmp.c
crypto/compat/arc4random_*.h
crypto/aes/
crypto/asn1/

View File

@ -69,6 +69,11 @@ endif
noinst_HEADERS = des/ncbc_enc.c
noinst_HEADERS += compat/thread_private.h
noinst_HEADERS += compat/arc4random.h
noinst_HEADERS += compat/arc4random_linux.h
noinst_HEADERS += compat/arc4random_osx.h
noinst_HEADERS += compat/arc4random_solaris.h
noinst_HEADERS += compat/arc4random_win.h
noinst_HEADERS += compat/chacha_private.h
libcrypto_la_SOURCES =
EXTRA_libcrypto_la_SOURCES =

View File

@ -0,0 +1,16 @@
#ifdef __linux__
#include "arc4random_linux.h"
#endif
#ifdef __APPLE__
#include "arc4random_osx.h"
#endif
#ifdef __sun
#include "arc4random_solaris.h"
#endif
#ifdef __WIN32
#include "arc4random_win.h"
#endif

View File

@ -68,6 +68,7 @@ cp $libc_src/stdlib/reallocarray.c crypto/compat
cp $libc_src/crypt/arc4random.c crypto/compat
cp $libc_src/crypt/chacha_private.h crypto/compat
cp $libcrypto_src/crypto/getentropy_*.c crypto/compat
cp $libcrypto_src/crypto/arc4random_*.h crypto/compat
(cd ./$libssl_src/src/crypto/objects/;
perl objects.pl objects.txt obj_mac.num obj_mac.h;