Skip to content

Commit 840c78b

Browse files
committed
Check RAND_egd after setting up openssl
Noticed this by accident: We should check functions in the library only after setting it up.
1 parent 6d5c60e commit 840c78b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/openssl/config0.m4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ if test "$PHP_OPENSSL" != "no"; then
2828
PHP_EVAL_LIBLINE($KERBEROS_LIBS, OPENSSL_SHARED_LIBADD)
2929
fi
3030

31-
AC_CHECK_FUNCS([RAND_egd])
32-
3331
PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD,
3432
[
3533
AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ])
3634
], [
3735
AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
3836
])
37+
38+
AC_CHECK_FUNCS([RAND_egd])
39+
3940
if test "$PHP_SYSTEM_CIPHERS" != "no"; then
4041
AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
4142
fi

0 commit comments

Comments
 (0)