mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-15 02:00:20 +00:00
Use AC_CHECK_FUNCS to find functions not in LibreSSL
LibreSSL might not have all functions of OpenSSL 1.1.0 so use AC_CHECK_FUNCS to find them first before using them. Closes #1899 Fixes #1898
This commit is contained in:
committed by
Patrick Griffis
parent
1b760dd22b
commit
d583ca7d92
@@ -374,6 +374,8 @@ AS_IF([test "$openssl" != no], [
|
||||
openssl=yes
|
||||
COMMON_LIBS="$COMMON_LIBS $OPENSSL_LIBS"
|
||||
COMMON_CFLAGS="$COMMON_CFLAGS $OPENSSL_CFLAGS"
|
||||
dnl Test for various functions that are not available in LibreSSL
|
||||
AC_CHECK_FUNCS([SSL_CTX_get_ssl_method X509_get_signature_nid])
|
||||
], [
|
||||
unset openssl_path ac_cv_lib_ssl_SSL_new ac_cv_header_openssl_ssl_h
|
||||
AS_IF([test "$openssl" != yes], [
|
||||
|
||||
Reference in New Issue
Block a user