1
0
Fork 0

[ssl] Check for RAND_add

This commit is contained in:
Witold Filipczyk 2022-05-10 16:56:46 +02:00
parent 76cf90a410
commit 6bd33247f8
3 changed files with 8 additions and 1 deletions

View File

@ -613,6 +613,9 @@
/* Define to 1 if you have the `raise' function. */
#mesondefine HAVE_RAISE
/* Define to 1 ig you have the `RAND_add' function. */
#mesondefine HAVE_RAND_ADD
/* Define to 1 if you have the `RAND_bytes' function. */
#mesondefine HAVE_RAND_BYTES

View File

@ -1224,7 +1224,7 @@ else
EL_CONFIG(CONFIG_OPENSSL, [OpenSSL])
chosen_ssl_library="OpenSSL"
AC_CHECK_FUNCS(RAND_bytes)
AC_CHECK_FUNCS(RAND_bytes RAND_add)
AC_CHECK_FUNCS(ASN1_STRING_get0_data)
CFLAGS="$CFLAGS_X"

View File

@ -768,6 +768,10 @@ if compiler.has_function('event_get_struct_event_size', prefix : eh, dependencie
conf_data.set('HAVE_EVENT_GET_STRUCT_EVENT_SIZE', 1)
endif
if compiler.has_function('RAND_add', prefix: '#include <openssl/rand.h>', dependencies: ssldeps)
conf_data.set('HAVE_RAND_ADD', 1)
endif
if compiler.has_function('RAND_bytes', prefix: '#include <openssl/rand.h>', dependencies: ssldeps)
conf_data.set('HAVE_RAND_BYTES', 1)
endif