mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Change configure to use EVP_sha256 instead of HMAC_Update for
openssl-3.0.0.
This commit is contained in:
parent
45d4cbaa42
commit
aa602fdd0c
5 changed files with 38 additions and 38 deletions
|
|
@ -2,7 +2,8 @@
|
||||||
# Copyright 2009, Wouter Wijngaards, NLnet Labs.
|
# Copyright 2009, Wouter Wijngaards, NLnet Labs.
|
||||||
# BSD licensed.
|
# BSD licensed.
|
||||||
#
|
#
|
||||||
# Version 34
|
# Version 35
|
||||||
|
# 2020-08-24 Use EVP_sha256 instead of HMAC_Update (for openssl-3.0.0).
|
||||||
# 2016-03-21 Check -ldl -pthread for libcrypto for ldns and openssl 1.1.0.
|
# 2016-03-21 Check -ldl -pthread for libcrypto for ldns and openssl 1.1.0.
|
||||||
# 2016-03-21 Use HMAC_Update instead of HMAC_CTX_Init (for openssl-1.1.0).
|
# 2016-03-21 Use HMAC_Update instead of HMAC_CTX_Init (for openssl-1.1.0).
|
||||||
# 2016-01-04 -D_DEFAULT_SOURCE defined with -D_BSD_SOURCE for Linux glibc 2.20
|
# 2016-01-04 -D_DEFAULT_SOURCE defined with -D_BSD_SOURCE for Linux glibc 2.20
|
||||||
|
|
@ -673,16 +674,16 @@ AC_DEFUN([ACX_SSL_CHECKS], [
|
||||||
ACX_RUNTIME_PATH_ADD([$ssldir/lib])
|
ACX_RUNTIME_PATH_ADD([$ssldir/lib])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([for HMAC_Update in -lcrypto])
|
AC_MSG_CHECKING([for EVP_sha256 in -lcrypto])
|
||||||
LIBS="$LIBS -lcrypto"
|
LIBS="$LIBS -lcrypto"
|
||||||
LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
|
LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
|
||||||
AC_TRY_LINK(, [
|
AC_TRY_LINK(, [
|
||||||
int HMAC_Update(void);
|
int EVP_sha256(void);
|
||||||
(void)HMAC_Update();
|
(void)EVP_sha256();
|
||||||
], [
|
], [
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
AC_DEFINE([HAVE_HMAC_UPDATE], 1,
|
AC_DEFINE([HAVE_EVP_SHA256], 1,
|
||||||
[If you have HMAC_Update])
|
[If you have EVP_sha256])
|
||||||
], [
|
], [
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
# check if -lwsock32 or -lgdi32 are needed.
|
# check if -lwsock32 or -lgdi32 are needed.
|
||||||
|
|
@ -692,11 +693,11 @@ AC_DEFUN([ACX_SSL_CHECKS], [
|
||||||
LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
|
LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
|
||||||
AC_MSG_CHECKING([if -lcrypto needs -lgdi32])
|
AC_MSG_CHECKING([if -lcrypto needs -lgdi32])
|
||||||
AC_TRY_LINK([], [
|
AC_TRY_LINK([], [
|
||||||
int HMAC_Update(void);
|
int EVP_sha256(void);
|
||||||
(void)HMAC_Update();
|
(void)EVP_sha256();
|
||||||
],[
|
],[
|
||||||
AC_DEFINE([HAVE_HMAC_UPDATE], 1,
|
AC_DEFINE([HAVE_EVP_SHA256], 1,
|
||||||
[If you have HMAC_Update])
|
[If you have EVP_sha256])
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
|
@ -706,11 +707,11 @@ AC_DEFUN([ACX_SSL_CHECKS], [
|
||||||
LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
|
LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
|
||||||
AC_MSG_CHECKING([if -lcrypto needs -ldl])
|
AC_MSG_CHECKING([if -lcrypto needs -ldl])
|
||||||
AC_TRY_LINK([], [
|
AC_TRY_LINK([], [
|
||||||
int HMAC_Update(void);
|
int EVP_sha256(void);
|
||||||
(void)HMAC_Update();
|
(void)EVP_sha256();
|
||||||
],[
|
],[
|
||||||
AC_DEFINE([HAVE_HMAC_UPDATE], 1,
|
AC_DEFINE([HAVE_EVP_SHA256], 1,
|
||||||
[If you have HMAC_Update])
|
[If you have EVP_sha256])
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
|
@ -720,11 +721,11 @@ AC_DEFUN([ACX_SSL_CHECKS], [
|
||||||
LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
|
LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
|
||||||
AC_MSG_CHECKING([if -lcrypto needs -ldl -pthread])
|
AC_MSG_CHECKING([if -lcrypto needs -ldl -pthread])
|
||||||
AC_TRY_LINK([], [
|
AC_TRY_LINK([], [
|
||||||
int HMAC_Update(void);
|
int EVP_sha256(void);
|
||||||
(void)HMAC_Update();
|
(void)EVP_sha256();
|
||||||
],[
|
],[
|
||||||
AC_DEFINE([HAVE_HMAC_UPDATE], 1,
|
AC_DEFINE([HAVE_EVP_SHA256], 1,
|
||||||
[If you have HMAC_Update])
|
[If you have EVP_sha256])
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
|
|
||||||
|
|
@ -299,9 +299,6 @@
|
||||||
/* Define to 1 if you have the `HMAC_Init_ex' function. */
|
/* Define to 1 if you have the `HMAC_Init_ex' function. */
|
||||||
#undef HAVE_HMAC_INIT_EX
|
#undef HAVE_HMAC_INIT_EX
|
||||||
|
|
||||||
/* If you have HMAC_Update */
|
|
||||||
#undef HAVE_HMAC_UPDATE
|
|
||||||
|
|
||||||
/* If we have htobe64 */
|
/* If we have htobe64 */
|
||||||
#undef HAVE_HTOBE64
|
#undef HAVE_HTOBE64
|
||||||
|
|
||||||
|
|
|
||||||
32
configure
vendored
32
configure
vendored
|
|
@ -17943,8 +17943,8 @@ $as_echo "found in $ssldir" >&6; }
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
|
||||||
$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
|
$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
|
||||||
LIBS="$LIBS -lcrypto"
|
LIBS="$LIBS -lcrypto"
|
||||||
LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
|
LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
|
@ -17954,8 +17954,8 @@ int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
int HMAC_Update(void);
|
int EVP_sha256(void);
|
||||||
(void)HMAC_Update();
|
(void)EVP_sha256();
|
||||||
|
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -17966,7 +17966,7 @@ if ac_fn_c_try_link "$LINENO"; then :
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
|
||||||
$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
|
$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
@ -17987,8 +17987,8 @@ int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
int HMAC_Update(void);
|
int EVP_sha256(void);
|
||||||
(void)HMAC_Update();
|
(void)EVP_sha256();
|
||||||
|
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -17997,7 +17997,7 @@ _ACEOF
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
|
$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
|
@ -18019,8 +18019,8 @@ int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
int HMAC_Update(void);
|
int EVP_sha256(void);
|
||||||
(void)HMAC_Update();
|
(void)EVP_sha256();
|
||||||
|
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -18029,7 +18029,7 @@ _ACEOF
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
|
$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
|
@ -18051,8 +18051,8 @@ int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
int HMAC_Update(void);
|
int EVP_sha256(void);
|
||||||
(void)HMAC_Update();
|
(void)EVP_sha256();
|
||||||
|
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -18061,7 +18061,7 @@ _ACEOF
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
|
$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
|
@ -18246,11 +18246,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
#endif
|
#endif
|
||||||
char HMAC_Update ();
|
char EVP_sha256 ();
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
return HMAC_Update ();
|
return EVP_sha256 ();
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -832,7 +832,7 @@ AC_SUBST(PC_CRYPTO_DEPENDENCY)
|
||||||
BAKLIBS="$LIBS"
|
BAKLIBS="$LIBS"
|
||||||
LIBS="-lssl $LIBS"
|
LIBS="-lssl $LIBS"
|
||||||
AC_MSG_CHECKING([if libssl needs -lcrypt32])
|
AC_MSG_CHECKING([if libssl needs -lcrypt32])
|
||||||
AC_TRY_LINK_FUNC([HMAC_Update], [
|
AC_TRY_LINK_FUNC([EVP_sha256], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
LIBS="$BAKLIBS"
|
LIBS="$BAKLIBS"
|
||||||
], [
|
], [
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
attempts. Attempts on the timer are only logged on high verbosity,
|
attempts. Attempts on the timer are only logged on high verbosity,
|
||||||
if they produce a connection failure error.
|
if they produce a connection failure error.
|
||||||
- Fix to apply chroot to dnstap-socket-path, if chroot is enabled.
|
- Fix to apply chroot to dnstap-socket-path, if chroot is enabled.
|
||||||
|
- Change configure to use EVP_sha256 instead of HMAC_Update for
|
||||||
|
openssl-3.0.0.
|
||||||
|
|
||||||
20 August 2020: Ralph
|
20 August 2020: Ralph
|
||||||
- Fix stats double count issue (#289).
|
- Fix stats double count issue (#289).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue