diff --git a/config2.h.in b/config2.h.in index fcae682c..940d5410 100644 --- a/config2.h.in +++ b/config2.h.in @@ -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 diff --git a/configure.ac b/configure.ac index 45044bbf..cbfa93be 100644 --- a/configure.ac +++ b/configure.ac @@ -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" diff --git a/meson.build b/meson.build index 16a50ad0..068a915d 100644 --- a/meson.build +++ b/meson.build @@ -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 ', dependencies: ssldeps) + conf_data.set('HAVE_RAND_ADD', 1) +endif + if compiler.has_function('RAND_bytes', prefix: '#include ', dependencies: ssldeps) conf_data.set('HAVE_RAND_BYTES', 1) endif