Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
4cb89f2e
Commit
4cb89f2e
authored
Oct 27, 2020
by
Cy Schubert
Browse files
Vendor import of Unbound 1.12.0.
parent
7973006f
Changes
153
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
4cb89f2e
...
...
@@ -31,6 +31,7 @@
/unbound.h
/asynclook
/delayer
/dohclient
/lock-verify
/memstats
/perf
...
...
Makefile.in
View file @
4cb89f2e
...
...
@@ -231,6 +231,10 @@ STREAMTCP_SRC=testcode/streamtcp.c
STREAMTCP_OBJ
=
streamtcp.lo
STREAMTCP_OBJ_LINK
=
$(STREAMTCP_OBJ)
worker_cb.lo
$(COMMON_OBJ)
$(COMPAT_OBJ)
\
$(SLDNS_OBJ)
DOHCLIENT_SRC
=
testcode/dohclient.c
DOHCLIENT_OBJ
=
dohclient.lo
DOHCLIENT_OBJ_LINK
=
$(DOHCLIENT_OBJ)
worker_cb.lo
$(COMMON_OBJ)
$(COMPAT_OBJ)
\
$(SLDNS_OBJ)
PERF_SRC
=
testcode/perf.c
PERF_OBJ
=
perf.lo
PERF_OBJ_LINK
=
$(PERF_OBJ)
worker_cb.lo
$(COMMON_OBJ)
$(COMPAT_OBJ)
$(SLDNS_OBJ)
...
...
@@ -272,7 +276,8 @@ ALL_SRC=$(COMMON_SRC) $(UNITTEST_SRC) $(DAEMON_SRC) \
$(ASYNCLOOK_SRC)
$(STREAMTCP_SRC)
$(PERF_SRC)
$(DELAYER_SRC)
\
$(CONTROL_SRC)
$(UBANCHOR_SRC)
$(PETAL_SRC)
$(DNSTAP_SOCKET_SRC)
\
$(PYTHONMOD_SRC)
$(PYUNBOUND_SRC)
$(WIN_DAEMON_THE_SRC)
\
$(SVCINST_SRC)
$(SVCUNINST_SRC)
$(ANCHORUPD_SRC)
$(SLDNS_SRC)
$(SVCINST_SRC)
$(SVCUNINST_SRC)
$(ANCHORUPD_SRC)
$(SLDNS_SRC)
\
$(DOHCLIENT_SRC)
ALL_OBJ
=
$(COMMON_OBJ)
$(UNITTEST_OBJ)
$(DAEMON_OBJ)
\
$(TESTBOUND_OBJ)
$(LOCKVERIFY_OBJ)
$(PKTVIEW_OBJ)
\
...
...
@@ -280,7 +285,8 @@ ALL_OBJ=$(COMMON_OBJ) $(UNITTEST_OBJ) $(DAEMON_OBJ) \
$(ASYNCLOOK_OBJ)
$(STREAMTCP_OBJ)
$(PERF_OBJ)
$(DELAYER_OBJ)
\
$(CONTROL_OBJ)
$(UBANCHOR_OBJ)
$(PETAL_OBJ)
$(DNSTAP_SOCKET_OBJ)
\
$(COMPAT_OBJ)
$(PYUNBOUND_OBJ)
\
$(SVCINST_OBJ)
$(SVCUNINST_OBJ)
$(ANCHORUPD_OBJ)
$(SLDNS_OBJ)
$(SVCINST_OBJ)
$(SVCUNINST_OBJ)
$(ANCHORUPD_OBJ)
$(SLDNS_OBJ)
\
$(DOHCLIENT_OBJ)
COMPILE
=
$(LIBTOOL)
--tag
=
CC
--mode
=
compile
$(CC)
$(CPPFLAGS)
$(CFLAGS)
@PTHREAD_CFLAGS_ONLY@
LINK
=
$(LIBTOOL)
--tag
=
CC
--mode
=
link
$(CC)
$(staticexe)
$(RUNTIME_PATH)
$(CPPFLAGS)
$(CFLAGS)
$(LDFLAGS)
...
...
@@ -317,7 +323,7 @@ rsrc_unbound_checkconf.o: $(srcdir)/winrc/rsrc_unbound_checkconf.rc config.h
TEST_BIN
=
asynclook
$(EXEEXT)
delayer
$(EXEEXT)
\
lock-verify
$(EXEEXT)
memstats
$(EXEEXT)
perf
$(EXEEXT)
\
petal
$(EXEEXT)
pktview
$(EXEEXT)
streamtcp
$(EXEEXT)
\
unbound-dnstap-socket
$(EXEEXT)
\
unbound-dnstap-socket
$(EXEEXT)
dohclient
$(EXEEXT)
\
testbound
$(EXEEXT)
unittest
$(EXEEXT)
tests
:
all $(TEST_BIN)
...
...
@@ -387,6 +393,9 @@ asynclook$(EXEEXT): $(ASYNCLOOK_OBJ_LINK) libunbound.la
streamtcp$(EXEEXT)
:
$(STREAMTCP_OBJ_LINK)
$(LINK)
-o
$@
$(STREAMTCP_OBJ_LINK)
$(SSLLIB)
$(LIBS)
$(DYNLIBMOD_EXTRALIBS)
dohclient$(EXEEXT)
:
$(DOHCLIENT_OBJ_LINK)
$(LINK)
-o
$@
$(DOHCLIENT_OBJ_LINK)
$(SSLLIB)
$(LIBS)
$(DYNLIBMOD_EXTRALIBS)
perf$(EXEEXT)
:
$(PERF_OBJ_LINK)
$(LINK)
-o
$@
$(PERF_OBJ_LINK)
$(SSLLIB)
$(LIBS)
$(DYNLIBMOD_EXTRALIBS)
...
...
@@ -672,7 +681,7 @@ dns.lo dns.o: $(srcdir)/services/cache/dns.c config.h $(srcdir)/iterator/iter_de
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h
\
$(srcdir)/validator/val_utils.h $(srcdir)/sldns/pkthdr.h $(srcdir)/services/cache/dns.h
\
$(srcdir)/util/data/msgreply.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h
\
$(srcdir)/util/data/
dnam
e.h $(srcdir)/
util/module
.h $(srcdir)/util/data/
msgpars
e.h $(srcdir)/
sldns/rrdef
.h
\
$(srcdir)/util/data/
msgpars
e.h $(srcdir)/
sldns/rrdef
.h $(srcdir)/util/data/
dnam
e.h $(srcdir)/
util/module
.h
\
$(srcdir)/util/net_help.h $(srcdir)/util/regional.h $(srcdir)/util/config_file.h $(srcdir)/sldns/sbuffer.h
infra.lo infra.o
:
$(srcdir)/services/cache/infra.c config.h $(srcdir)/sldns/rrdef.h $(srcdir)/sldns/str2wire.h
\
$(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/wire2str.h $(srcdir)/services/cache/infra.h
\
...
...
@@ -713,10 +722,11 @@ msgreply.lo msgreply.o: $(srcdir)/util/data/msgreply.c config.h $(srcdir)/util/d
$(srcdir)/util/storage/dnstree.h $(srcdir)/services/view.h $(srcdir)/util/config_file.h
\
$(srcdir)/services/authzone.h $(srcdir)/daemon/stats.h $(srcdir)/util/timehist.h $(srcdir)/libunbound/unbound.h
\
$(srcdir)/respip/respip.h
packed_rrset.lo packed_rrset.o
:
$(srcdir)/util/data/packed_rrset.c config.h
\
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
\
$(srcdir)/util/data/dname.h $(srcdir)/util/storage/lookup3.h $(srcdir)/util/alloc.h $(srcdir)/util/regional.h
\
$(srcdir)/util/net_help.h $(srcdir)/sldns/rrdef.h $(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/wire2str.h
packed_rrset.lo packed_rrset.o
:
$(srcdir)/util/data/packed_rrset.c config.h $(srcdir)/util/data/msgparse.h
\
$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/sldns/pkthdr.h
\
$(srcdir)/sldns/rrdef.h $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/data/dname.h
\
$(srcdir)/util/storage/lookup3.h $(srcdir)/util/alloc.h $(srcdir)/util/regional.h $(srcdir)/util/net_help.h
\
$(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/wire2str.h
iterator.lo iterator.o
:
$(srcdir)/iterator/iterator.c config.h $(srcdir)/iterator/iterator.h
\
$(srcdir)/services/outbound_list.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/storage/lruhash.h
\
$(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/module.h
\
...
...
@@ -785,7 +795,7 @@ listen_dnsport.lo listen_dnsport.o: $(srcdir)/services/listen_dnsport.c config.h
$(srcdir)/services/listen_dnsport.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/services/outside_network.h $(srcdir)/util/rbtree.h
\
$(srcdir)/util/log.h $(srcdir)/util/config_file.h $(srcdir)/util/net_help.h
\
$(srcdir)/sldns/sbuffer.h $(srcdir)/services/mesh.h $(srcdir)/util/data/msgparse.h
\
$(srcdir)/sldns/sbuffer.h
$(srcdir)/sldns/parseutil.h
$(srcdir)/services/mesh.h $(srcdir)/util/data/msgparse.h
\
$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h
\
$(srcdir)/util/module.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h
\
$(srcdir)/services/modstack.h $(srcdir)/services/rpz.h $(srcdir)/services/localzone.h
\
...
...
@@ -808,10 +818,10 @@ mesh.lo mesh.o: $(srcdir)/services/mesh.c config.h $(srcdir)/services/mesh.h $(s
$(srcdir)/services/localzone.h $(srcdir)/util/storage/dnstree.h $(srcdir)/services/view.h
\
$(srcdir)/sldns/sbuffer.h $(srcdir)/util/config_file.h $(srcdir)/services/authzone.h $(srcdir)/daemon/stats.h
\
$(srcdir)/util/timehist.h $(srcdir)/libunbound/unbound.h $(srcdir)/respip/respip.h
\
$(srcdir)/services/outbound_list.h $(srcdir)/services/cache/dns.h $(srcdir)/
util/net_help
.h
\
$(srcdir)/util/
regional.h $(srcdir)/util/data/msgencode
.h $(srcdir)/util/
fptr_wlist
.h $(srcdir)/util/
tube
.h
\
$(srcdir)/util/
alloc
.h $(srcdir)/util/
edns
.h $(srcdir)/
sldns/wire2str
.h $(srcdir)/util/
data/dname
.h
\
$(srcdir)/services/listen_dnsport.h
$(srcdir)/services/outbound_list.h $(srcdir)/services/cache/dns.h $(srcdir)/
services/cache/rrset
.h
\
$(srcdir)/util/
storage/slabhash
.h $(srcdir)/util/
net_help
.h $(srcdir)/util/
regional
.h
\
$(srcdir)/util/
data/msgencode
.h $(srcdir)/util/
fptr_wlist
.h $(srcdir)/
util/tube
.h $(srcdir)/util/
alloc
.h
\
$(srcdir)/util/edns.h $(srcdir)/sldns/wire2str.h $(srcdir)/util/data/dname.h
$(srcdir)/services/listen_dnsport.h
modstack.lo modstack.o
:
$(srcdir)/services/modstack.c config.h $(srcdir)/services/modstack.h
\
$(srcdir)/util/module.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
\
$(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/data/msgparse.h
\
...
...
@@ -1204,7 +1214,8 @@ testpkts.lo testpkts.o: $(srcdir)/testcode/testpkts.c config.h $(srcdir)/testcod
$(srcdir)/util/net_help.h $(srcdir)/util/log.h $(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/rrdef.h $(srcdir)/sldns/pkthdr.h
\
$(srcdir)/sldns/str2wire.h $(srcdir)/sldns/wire2str.h
unitldns.lo unitldns.o
:
$(srcdir)/testcode/unitldns.c config.h $(srcdir)/util/log.h $(srcdir)/testcode/unitmain.h
\
$(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/str2wire.h $(srcdir)/sldns/rrdef.h $(srcdir)/sldns/wire2str.h
$(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/str2wire.h $(srcdir)/sldns/rrdef.h $(srcdir)/sldns/wire2str.h
\
$(srcdir)/sldns/parseutil.h
unitecs.lo unitecs.o
:
$(srcdir)/testcode/unitecs.c config.h
unitauth.lo unitauth.o
:
$(srcdir)/testcode/unitauth.c config.h $(srcdir)/services/authzone.h
\
$(srcdir)/util/rbtree.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/services/mesh.h $(srcdir)/util/netevent.h
\
...
...
@@ -1310,7 +1321,8 @@ worker.lo worker.o: $(srcdir)/daemon/worker.c config.h $(srcdir)/util/log.h $(sr
$(srcdir)/util/data/dname.h $(srcdir)/util/fptr_wlist.h $(srcdir)/util/tube.h $(srcdir)/util/edns.h
\
$(srcdir)/iterator/iter_fwd.h $(srcdir)/iterator/iter_hints.h $(srcdir)/validator/autotrust.h
\
$(srcdir)/validator/val_anchor.h $(srcdir)/libunbound/context.h $(srcdir)/libunbound/unbound-event.h
\
$(srcdir)/libunbound/libworker.h $(srcdir)/sldns/wire2str.h $(srcdir)/util/shm_side/shm_main.h
$(srcdir)/libunbound/libworker.h $(srcdir)/sldns/wire2str.h $(srcdir)/util/shm_side/shm_main.h
\
$(srcdir)/dnstap/dtstream.h
testbound.lo testbound.o
:
$(srcdir)/testcode/testbound.c config.h $(srcdir)/testcode/testpkts.h
\
$(srcdir)/testcode/replay.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/util/rbtree.h $(srcdir)/testcode/fake_event.h
\
...
...
@@ -1344,7 +1356,8 @@ worker.lo worker.o: $(srcdir)/daemon/worker.c config.h $(srcdir)/util/log.h $(sr
$(srcdir)/util/data/dname.h $(srcdir)/util/fptr_wlist.h $(srcdir)/util/tube.h $(srcdir)/util/edns.h
\
$(srcdir)/iterator/iter_fwd.h $(srcdir)/iterator/iter_hints.h $(srcdir)/validator/autotrust.h
\
$(srcdir)/validator/val_anchor.h $(srcdir)/libunbound/context.h $(srcdir)/libunbound/unbound-event.h
\
$(srcdir)/libunbound/libworker.h $(srcdir)/sldns/wire2str.h $(srcdir)/util/shm_side/shm_main.h
$(srcdir)/libunbound/libworker.h $(srcdir)/sldns/wire2str.h $(srcdir)/util/shm_side/shm_main.h
\
$(srcdir)/dnstap/dtstream.h
acl_list.lo acl_list.o
:
$(srcdir)/daemon/acl_list.c config.h $(srcdir)/daemon/acl_list.h
\
$(srcdir)/util/storage/dnstree.h $(srcdir)/util/rbtree.h $(srcdir)/services/view.h $(srcdir)/util/locks.h
\
$(srcdir)/util/log.h $(srcdir)/util/regional.h $(srcdir)/util/config_file.h $(srcdir)/util/net_help.h
\
...
...
@@ -1507,6 +1520,12 @@ unbound-control.lo unbound-control.o: $(srcdir)/smallapp/unbound-control.c confi
unbound-anchor.lo unbound-anchor.o
:
$(srcdir)/smallapp/unbound-anchor.c config.h $(srcdir)/libunbound/unbound.h
\
$(srcdir)/sldns/rrdef.h $(srcdir)/sldns/parseutil.h
petal.lo petal.o
:
$(srcdir)/testcode/petal.c config.h
unbound-dnstap-socket.lo unbound-dnstap-socket.o
:
$(srcdir)/dnstap/unbound-dnstap-socket.c config.h
\
$(srcdir)/dnstap/dtstream.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/dnstap/dnstap_fstrm.h
\
$(srcdir)/util/ub_event.h $(srcdir)/util/net_help.h $(srcdir)/services/listen_dnsport.h
\
$(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/wire2str.h $(srcdir)/util/config_file.h
\
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h
pythonmod_utils.lo pythonmod_utils.o
:
$(srcdir)/pythonmod/pythonmod_utils.c config.h $(srcdir)/util/module.h
\
$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/msgreply.h
\
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h
\
...
...
@@ -1542,6 +1561,10 @@ parseutil.lo parseutil.o: $(srcdir)/sldns/parseutil.c config.h $(srcdir)/sldns/p
rrdef.lo rrdef.o
:
$(srcdir)/sldns/rrdef.c config.h $(srcdir)/sldns/rrdef.h $(srcdir)/sldns/parseutil.h
str2wire.lo str2wire.o
:
$(srcdir)/sldns/str2wire.c config.h $(srcdir)/sldns/str2wire.h $(srcdir)/sldns/rrdef.h
\
$(srcdir)/sldns/wire2str.h $(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/parse.h $(srcdir)/sldns/parseutil.h
dohclient.lo dohclient.o
:
$(srcdir)/testcode/dohclient.c config.h $(srcdir)/sldns/wire2str.h
\
$(srcdir)/sldns/sbuffer.h $(srcdir)/sldns/str2wire.h $(srcdir)/sldns/rrdef.h $(srcdir)/util/data/msgencode.h
\
$(srcdir)/util/data/msgreply.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
\
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/net_help.h
ctime_r.lo ctime_r.o
:
$(srcdir)/compat/ctime_r.c config.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
fake-rfc2553.lo fake-rfc2553.o
:
$(srcdir)/compat/fake-rfc2553.c $(srcdir)/compat/fake-rfc2553.h config.h
gmtime_r.lo gmtime_r.o
:
$(srcdir)/compat/gmtime_r.c config.h
...
...
README.md
View file @
4cb89f2e
...
...
@@ -9,7 +9,7 @@ fast and lean and incorporates modern features based on open standards. If you
have any feedback, we would love to hear from you. Don’t hesitate to
[
create an issue on Github
](
https://github.com/NLnetLabs/unbound/issues/new
)
or post a message on the
[
Unbound mailing list
](
https://lists.nlnetlabs.nl/mailman/listinfo/unbound-users
)
.
You can lean more about Unbound by reading our
You can lea
r
n more about Unbound by reading our
[
documentation
](
https://nlnetlabs.nl/documentation/unbound/
)
.
## Compiling
...
...
acx_nlnetlabs.m4
View file @
4cb89f2e
...
...
@@ -2,7 +2,8 @@
# Copyright 2009, Wouter Wijngaards, NLnet Labs.
# 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 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
...
...
@@ -673,16 +674,16 @@ AC_DEFUN([ACX_SSL_CHECKS], [
ACX_RUNTIME_PATH_ADD([$ssldir/lib])
fi
AC_MSG_CHECKING([for
HMAC_Update
in -lcrypto])
AC_MSG_CHECKING([for
EVP_sha256
in -lcrypto])
LIBS="$LIBS -lcrypto"
LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
AC_TRY_LINK(, [
int
HMAC_Update
(void);
(void)
HMAC_Update
();
int
EVP_sha256
(void);
(void)
EVP_sha256
();
], [
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_
HMAC_UPDATE
], 1,
[If you have
HMAC_Update
])
AC_DEFINE([HAVE_
EVP_SHA256
], 1,
[If you have
EVP_sha256
])
], [
AC_MSG_RESULT(no)
# check if -lwsock32 or -lgdi32 are needed.
...
...
@@ -692,11 +693,11 @@ AC_DEFUN([ACX_SSL_CHECKS], [
LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
AC_MSG_CHECKING([if -lcrypto needs -lgdi32])
AC_TRY_LINK([], [
int
HMAC_Update
(void);
(void)
HMAC_Update
();
int
EVP_sha256
(void);
(void)
EVP_sha256
();
],[
AC_DEFINE([HAVE_
HMAC_UPDATE
], 1,
[If you have
HMAC_Update
])
AC_DEFINE([HAVE_
EVP_SHA256
], 1,
[If you have
EVP_sha256
])
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
...
...
@@ -706,11 +707,11 @@ AC_DEFUN([ACX_SSL_CHECKS], [
LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
AC_MSG_CHECKING([if -lcrypto needs -ldl])
AC_TRY_LINK([], [
int
HMAC_Update
(void);
(void)
HMAC_Update
();
int
EVP_sha256
(void);
(void)
EVP_sha256
();
],[
AC_DEFINE([HAVE_
HMAC_UPDATE
], 1,
[If you have
HMAC_Update
])
AC_DEFINE([HAVE_
EVP_SHA256
], 1,
[If you have
EVP_sha256
])
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
...
...
@@ -720,11 +721,11 @@ AC_DEFUN([ACX_SSL_CHECKS], [
LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
AC_MSG_CHECKING([if -lcrypto needs -ldl -pthread])
AC_TRY_LINK([], [
int
HMAC_Update
(void);
(void)
HMAC_Update
();
int
EVP_sha256
(void);
(void)
EVP_sha256
();
],[
AC_DEFINE([HAVE_
HMAC_UPDATE
], 1,
[If you have
HMAC_Update
])
AC_DEFINE([HAVE_
EVP_SHA256
], 1,
[If you have
EVP_sha256
])
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
...
...
config.guess
View file @
4cb89f2e
...
...
@@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2020 Free Software Foundation, Inc.
timestamp
=
'2020-0
7
-1
2
'
timestamp
=
'2020-0
9
-1
9
'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
...
...
@@ -150,17 +150,15 @@ Linux|GNU|GNU/*)
#elif defined(__dietlibc__)
LIBC=dietlibc
#else
#include <stdarg.h>
#ifdef __DEFINED_va_list
LIBC=musl
#else
LIBC=gnu
#endif
#endif
EOF
eval
"
`
$CC_FOR_BUILD
-E
"
$dummy
.c"
2>/dev/null |
grep
'^LIBC'
|
sed
's, ,,g'
`
"
# If ldd exists, use it to detect musl libc.
if
command
-v
ldd
>
/dev/null
&&
\
ldd
--version
2>&1 |
grep
-q
^musl
then
LIBC
=
musl
fi
;;
esac
...
...
@@ -404,7 +402,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
# If there is a compiler, see if it is configured for 64-bit objects.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# This test works for both compilers.
if
[
"
$CC_FOR_BUILD
"
!=
no_compiler_found
]
;
then
if
test
"
$CC_FOR_BUILD
"
!=
no_compiler_found
;
then
if
(
echo
'#ifdef __amd64'
;
echo
IS_64BIT_ARCH
;
echo
'#endif'
)
|
\
(
CCOPTS
=
""
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
grep
IS_64BIT_ARCH
>
/dev/null
...
...
@@ -544,10 +542,10 @@ EOF
AViiON:dgux:
*
:
*
)
# DG/UX returns AViiON for all architectures
UNAME_PROCESSOR
=
`
/usr/bin/uname
-p
`
if
[
"
$UNAME_PROCESSOR
"
=
mc88100
]
||
[
"
$UNAME_PROCESSOR
"
=
mc88110
]
if
test
"
$UNAME_PROCESSOR
"
=
mc88100
||
test
"
$UNAME_PROCESSOR
"
=
mc88110
then
if
[
"
$TARGET_BINARY_INTERFACE
"
x
=
m88kdguxelfx
]
||
\
[
"
$TARGET_BINARY_INTERFACE
"
x
=
x
]
if
test
"
$TARGET_BINARY_INTERFACE
"
x
=
m88kdguxelfx
||
\
test
"
$TARGET_BINARY_INTERFACE
"
x
=
x
then
echo
m88k-dg-dgux
"
$UNAME_RELEASE
"
else
...
...
@@ -580,7 +578,7 @@ EOF
echo
i386-ibm-aix
exit
;;
ia64:AIX:
*
:
*
)
if
[
-x
/usr/bin/oslevel
]
;
then
if
test
-x
/usr/bin/oslevel
;
then
IBM_REV
=
`
/usr/bin/oslevel
`
else
IBM_REV
=
"
$UNAME_VERSION
.
$UNAME_RELEASE
"
...
...
@@ -620,7 +618,7 @@ EOF
else
IBM_ARCH
=
powerpc
fi
if
[
-x
/usr/bin/lslpp
]
;
then
if
test
-x
/usr/bin/lslpp
;
then
IBM_REV
=
`
/usr/bin/lslpp
-Lqc
bos.rte.libc |
awk
-F
:
'{ print $3 }'
|
sed
s/[0-9]
*
$/
0/
`
else
...
...
@@ -655,7 +653,7 @@ EOF
9000/31?
)
HP_ARCH
=
m68000
;;
9000/[34]??
)
HP_ARCH
=
m68k
;;
9000/[678][0-9][0-9]
)
if
[
-x
/usr/bin/getconf
]
;
then
if
test
-x
/usr/bin/getconf
;
then
sc_cpu_version
=
`
/usr/bin/getconf SC_CPU_VERSION 2>/dev/null
`
sc_kernel_bits
=
`
/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null
`
case
"
$sc_cpu_version
"
in
...
...
@@ -669,7 +667,7 @@ EOF
esac
;;
esac
fi
if
[
"
$HP_ARCH
"
=
""
]
;
then
if
test
"
$HP_ARCH
"
=
""
;
then
set_cc_for_build
sed
's/^ //'
<<
EOF
> "
$dummy
.c"
...
...
@@ -708,7 +706,7 @@ EOF
test
-z
"
$HP_ARCH
"
&&
HP_ARCH
=
hppa
fi
;;
esac
if
[
"
$HP_ARCH
"
=
hppa2.0w
]
if
test
"
$HP_ARCH
"
=
hppa2.0w
then
set_cc_for_build
...
...
@@ -782,7 +780,7 @@ EOF
echo
hppa1.0-hp-osf
exit
;;
i
*
86:OSF1:
*
:
*
)
if
[
-x
/usr/sbin/sysversion
]
;
then
if
test
-x
/usr/sbin/sysversion
;
then
echo
"
$UNAME_MACHINE
"
-unknown-osf1mk
else
echo
"
$UNAME_MACHINE
"
-unknown-osf1
...
...
@@ -1097,7 +1095,7 @@ EOF
x86_64:Linux:
*
:
*
)
set_cc_for_build
LIBCABI
=
$LIBC
if
[
"
$CC_FOR_BUILD
"
!=
no_compiler_found
]
;
then
if
test
"
$CC_FOR_BUILD
"
!=
no_compiler_found
;
then
if
(
echo
'#ifdef __ILP32__'
;
echo
IS_X32
;
echo
'#endif'
)
|
\
(
CCOPTS
=
""
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
grep
IS_X32
>
/dev/null
...
...
@@ -1294,7 +1292,7 @@ EOF
echo
mips-sony-newsos6
exit
;;
R[34]000:
*
System_V
*
:
*
:
*
|
R4000:UNIX_SYSV:
*
:
*
|
R
*
000:UNIX_SV:
*
:
*
)
if
[
-d
/usr/nec
]
;
then
if
test
-d
/usr/nec
;
then
echo
mips-nec-sysv
"
$UNAME_RELEASE
"
else
echo
mips-unknown-sysv
"
$UNAME_RELEASE
"
...
...
@@ -1359,7 +1357,7 @@ EOF
else
set_cc_for_build
fi
if
[
"
$CC_FOR_BUILD
"
!=
no_compiler_found
]
;
then
if
test
"
$CC_FOR_BUILD
"
!=
no_compiler_found
;
then
if
(
echo
'#ifdef __LP64__'
;
echo
IS_64BIT_ARCH
;
echo
'#endif'
)
|
\
(
CCOPTS
=
""
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
grep
IS_64BIT_ARCH
>
/dev/null
...
...
config.h.in
View file @
4cb89f2e
...
...
@@ -113,6 +113,10 @@
don't. */
#undef HAVE_DECL_INET_PTON
/* Define to 1 if you have the declaration of `nghttp2_session_server_new',
and to 0 if you don't. */
#undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW
/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you
don't. */
#undef HAVE_DECL_NID_ED25519
...
...
@@ -221,6 +225,9 @@
/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */
#undef HAVE_EVP_ENCRYPTINIT_EX
/* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */
#undef HAVE_EVP_MAC_CTX_SET_PARAMS
/* Define to 1 if you have the `EVP_MD_CTX_new' function. */
#undef HAVE_EVP_MD_CTX_NEW
...
...
@@ -269,6 +276,9 @@
/* Define to 1 if you have the `getentropy' function. */
#undef HAVE_GETENTROPY
/* Define to 1 if you have the `getifaddrs' function. */
#undef HAVE_GETIFADDRS
/* Define to 1 if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
...
...
@@ -296,12 +306,12 @@
/* Define to 1 if you have the `HMAC_Init_ex' function. */
#undef HAVE_HMAC_INIT_EX
/* If you have HMAC_Update */
#undef HAVE_HMAC_UPDATE
/* If we have htobe64 */
#undef HAVE_HTOBE64
/* Define to 1 if you have the <ifaddrs.h> header file. */
#undef HAVE_IFADDRS_H
/* Define to 1 if you have the `inet_aton' function. */
#undef HAVE_INET_ATON
...
...
@@ -371,6 +381,15 @@
/* Define to 1 if you have the <nettle/eddsa.h> header file. */
#undef HAVE_NETTLE_EDDSA_H
/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H
/* Define this to use nghttp2 client. */
#undef HAVE_NGHTTP2
/* Define to 1 if you have the <nghttp2/nghttp2.h> header file. */
#undef HAVE_NGHTTP2_NGHTTP2_H
/* Use libnss for crypto */
#undef HAVE_NSS
...
...
@@ -497,6 +516,9 @@
/* Define if you have the SSL libraries installed. */
#undef HAVE_SSL
/* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */
#undef HAVE_SSL_CTX_SET_ALPN_SELECT_CB
/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */
#undef HAVE_SSL_CTX_SET_CIPHERSUITES
...
...
@@ -573,6 +595,9 @@
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
/* Define to 1 if you have the <sys/sha2.h> header file. */
#undef HAVE_SYS_SHA2_H
...
...
@@ -1358,6 +1383,8 @@ void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
#define UNBOUND_DNS_PORT 53
/** default port for DNS over TLS traffic. */
#define UNBOUND_DNS_OVER_TLS_PORT 853
/** default port for DNS over HTTPS traffic. */
#define UNBOUND_DNS_OVER_HTTPS_PORT 443
/** default port for unbound control traffic, registered port with IANA,
ub-dns-control 8953/tcp unbound dns nameserver control */
#define UNBOUND_CONTROL_PORT 8953
...
...
config.sub
View file @
4cb89f2e
...
...
@@ -2,7 +2,7 @@
# Configuration validation subroutine script.
# Copyright 1992-2020 Free Software Foundation, Inc.
timestamp
=
'2020-0
7-10
'
timestamp
=
'2020-0
9-08
'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
...
...
@@ -1278,7 +1278,7 @@ esac
# Decode manufacturer-specific aliases for certain operating systems.
if
[
x
$basic_os
!=
x
]
if
test
x
$basic_os
!=
x
then
# First recognize some ad-hoc caes, or perhaps split kernel-os, or else just
...
...
@@ -1367,13 +1367,7 @@ case $os in
os
=
psos
;;
qnx
*
)
case
$cpu
in
x86
|
i
*
86
)
;;
*
)
os
=
nto-
$os
;;
esac
os
=
qnx
;;
hiux
*
)
os
=
hiuxwe2
...
...
@@ -1722,7 +1716,7 @@ case $os in
|
skyos
*
|
haiku
*
|
rdos
*
|
toppers
*
|
drops
*
|
es
*
\
|
onefs
*
|
tirtos
*
|
phoenix
*
|
fuchsia
*
|
redox
*
|
bme
*
\
|
midnightbsd
*
|
amdhsa
*
|
unleashed
*
|
emscripten
*
|
wasi
*
\
|
nsk
*
|
powerunix
*
|
genode
*
|
zvmoe
*
)
|
nsk
*
|
powerunix
*
|
genode
*
|
zvmoe
*
|
qnx
*
)
;;
# This one is extra strict with allowed versions
sco3.2v2
|
sco3.2v[4-9]
*
|
sco5v6
*
)
...
...
@@ -1741,6 +1735,8 @@ esac
case
$kernel
-
$os
in
linux-gnu
*
|
linux-dietlibc
*
|
linux-android
*
|
linux-newlib
*
|
linux-musl
*
|
linux-uclibc
*
)
;;
uclinux-uclibc
*
)
;;
-dietlibc
*
|
-newlib
*
|
-musl
*
|
-uclibc
*
)
# These are just libc implementations, not actual OSes, and thus
# require a kernel.
...
...
configure
View file @
4cb89f2e
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for unbound 1.1
1
.0.
# Generated by GNU Autoconf 2.69 for unbound 1.1
2
.0.
#
# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
#
...
...
@@ -591,8 +591,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='unbound'
PACKAGE_TARNAME='unbound'
PACKAGE_VERSION='1.1
1
.0'
PACKAGE_STRING='unbound 1.1
1
.0'
PACKAGE_VERSION='1.1
2
.0'
PACKAGE_STRING='unbound 1.1
2
.0'
PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
PACKAGE_URL=''
...
...
@@ -882,6 +882,7 @@ enable_tfo_server
with_libevent
with_libexpat
with_libhiredis
with_libnghttp2
enable_static_exe
enable_fully_static
enable_lock_checks
...
...
@@ -1458,7 +1459,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures unbound 1.1
1
.0 to adapt to many kinds of systems.
\`configure' configures unbound 1.1
2
.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
...
...
@@ -1523,7 +1524,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of unbound 1.1
1
.0:";;
short | recursive ) echo "Configuration of unbound 1.1
2
.0:";;
esac
cat <<\_ACEOF
...
...
@@ -1642,6 +1643,7 @@ Optional Packages:
outgoing port ranges.
--with-libexpat=path specify explicit path for libexpat.
--with-libhiredis=path specify explicit path for libhiredis.
--with-libnghttp2=path specify explicit path for libnghttp2.
--with-dnstap-socket-path=pathname
set default dnstap socket path
--with-protobuf-c=path Path where protobuf-c is installed, for dnstap
...
...
@@ -1750,7 +1752,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
unbound configure 1.1
1
.0
unbound configure 1.1
2
.0
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
...
...
@@ -2459,7 +2461,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by unbound $as_me 1.1
1
.0, which was
It was created by unbound $as_me 1.1
2
.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
...
...
@@ -2809,13 +2811,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
UNBOUND_VERSION_MAJOR=1
UNBOUND_VERSION_MINOR=1
1
UNBOUND_VERSION_MINOR=1
2
UNBOUND_VERSION_MICRO=0
LIBUNBOUND_CURRENT=9
LIBUNBOUND_REVISION=
9
LIBUNBOUND_REVISION=
10
LIBUNBOUND_AGE=1
# 1.0.0 had 0:12:0
# 1.0.1 had 0:13:0
...
...
@@ -2892,6 +2894,7 @@ LIBUNBOUND_AGE=1
# 1.10.0 had 9:7:1
# 1.10.1 had 9:8:1
# 1.11.0 had 9:9:1
# 1.12.0 had 9:10:1
# Current -- the number of the binary API that we're implementing
# Revision -- which iteration of the implementation of the binary
...
...
@@ -14725,7 +14728,7 @@ $as_echo "no" >&6; }
fi
# Checks for header files.
for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h
for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h
sys/select.h
sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h
ifaddrs.h net/if.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
...
...
@@ -17942,8 +17945,8 @@ $as_echo "found in $ssldir" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for
HMAC_Update
in -lcrypto" >&5
$as_echo_n "checking for
HMAC_Update
in -lcrypto... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for
EVP_sha256
in -lcrypto" >&5
$as_echo_n "checking for
EVP_sha256
in -lcrypto... " >&6; }
LIBS="$LIBS -lcrypto"
LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
...
...
@@ -17953,8 +17956,8 @@ int
main ()
{
int
HMAC_Update
(void);
(void)
HMAC_Update
();
int
EVP_sha256
(void);
(void)
EVP_sha256
();
;
return 0;
...
...
@@ -17965,7 +17968,7 @@ if ac_fn_c_try_link "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
$as_echo "#define HAVE_
HMAC_UPDATE
1" >>confdefs.h
$as_echo "#define HAVE_
EVP_SHA256
1" >>confdefs.h
else
...
...
@@ -17986,8 +17989,8 @@ int
main ()
{
int
HMAC_Update
(void);
(void)
HMAC_Update
();
int
EVP_sha256
(void);
(void)
EVP_sha256
();
;
return 0;
...
...
@@ -17996,7 +17999,7 @@ _ACEOF
if ac_fn_c_try_link "$LINENO"; then :