mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[ssl] Check for RAND_add
This commit is contained in:
parent
76cf90a410
commit
6bd33247f8
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user