conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
+ for ac_func in \
+ SSL_get_client_random \
+ SSL_get_server_random \
+
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
CPPFLAGS="$old_CPPFLAGS"
fi
export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
- for ac_func in SSL_get_client_random
-do :
- ac_fn_c_check_func "$LINENO" "SSL_get_client_random" "ac_cv_func_SSL_get_client_random"
-if test "x$ac_cv_func_SSL_get_client_random" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_SSL_GET_CLIENT_RANDOM 1
-_ACEOF
- SSL_get_server_random
-fi
-done
-
fi
if test "x$PCAP_LIBS" = x; then
AC_MSG_RESULT([cross-compiling (assuming yes)])
]
)
+ dnl #
+ dnl # Check if the new HMAC_CTX interface is defined
+ dnl #
+ AC_CHECK_FUNCS( \
+ SSL_get_client_random \
+ SSL_get_server_random \
+ )
CPPFLAGS="$old_CPPFLAGS"
fi
AC_SUBST(OPENSSL_LDFLAGS)
AC_SUBST(OPENSSL_CPPFLAGS)
export OPENSSL_LIBS OPENSSL_LDFLAGS OPENSSL_CPPFLAGS
- AC_CHECK_FUNCS(SSL_get_client_random,SSL_get_server_random)
fi
dnl #
/* Define to 1 if you have the `SSL_get_client_random' function. */
#undef HAVE_SSL_GET_CLIENT_RANDOM
+/* Define to 1 if you have the `SSL_get_server_random' function. */
+#undef HAVE_SSL_GET_SERVER_RANDOM
+
/* Define to 1 if you have the <stdbool.h> header file. */
#undef HAVE_STDBOOL_H