add initial build for arc4random/getentropy fallbacks
This commit is contained in:
parent
cbdc8ca820
commit
63161e85dc
@ -567,8 +567,6 @@ endif()
|
|||||||
|
|
||||||
if(CMAKE_HOST_WIN32)
|
if(CMAKE_HOST_WIN32)
|
||||||
set(CRYPTO_SRC ${CRYPTO_SRC} compat/posix_win.c)
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/posix_win.c)
|
||||||
set(CRYPTO_SRC ${CRYPTO_SRC} compat/arc4random.c)
|
|
||||||
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getentropy_win.c)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT HAVE_ASPRINTF)
|
if(NOT HAVE_ASPRINTF)
|
||||||
@ -610,7 +608,24 @@ if(NOT HAVE_EXPLICIT_BZERO)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT HAVE_GETENTROPY)
|
if(NOT HAVE_ARC4RANDOM_BUF)
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/arc4random.c)
|
||||||
|
|
||||||
|
if(NOT HAVE_GETENTROPY)
|
||||||
|
if(CMAKE_HOST_WIN32)
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getentropy_win.c)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME MATCHES "AIX")
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getentropy_aix.c)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getentropy_freebsd.c)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getentropy_netbsd.c)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getentropy_darwin.c)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME MATCHES "SunOS")
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getentropy_solaris.c)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT HAVE_TIMINGSAFE_BCMP)
|
if(NOT HAVE_TIMINGSAFE_BCMP)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user