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
a6c5280e
Commit
a6c5280e
authored
May 12, 2018
by
Dag-Erling Smørgrav
Browse files
Vendor import of Unbound 1.6.6.
parent
8c2647a7
Changes
587
Hide whitespace changes
Inline
Side-by-side
Makefile.in
View file @
a6c5280e
...
...
@@ -426,7 +426,7 @@ libunbound/python/libunbound_wrap.c: $(srcdir)/libunbound/python/libunbound.i un
# Pyunbound python unbound wrapper
_unbound.la
:
libunbound_wrap.lo libunbound.la
$(LIBTOOL)
--tag
=
CC
--mode
=
link
$(CC)
$(RUNTIME_PATH)
$(CPPFLAGS)
$(CFLAGS)
$(LDFLAGS)
-module
-avoid-version
-no-undefined
-shared
-o
$@
libunbound_wrap.lo
-rpath
$(PYTHON_SITE_PKG)
L.
-L
.libs
-lunbound
$(LIBTOOL)
--tag
=
CC
--mode
=
link
$(CC)
$(RUNTIME_PATH)
$(CPPFLAGS)
$(CFLAGS)
$(LDFLAGS)
-module
-avoid-version
-no-undefined
-shared
-o
$@
libunbound_wrap.lo
-rpath
$(PYTHON_SITE_PKG)
-
L
.
-L
.libs
-lunbound
util/config_file.c
:
util/configparser.h
util/configlexer.c
:
$(srcdir)/util/configlexer.lex util/configparser.h
...
...
@@ -735,9 +735,9 @@ iter_utils.lo iter_utils.o: $(srcdir)/iterator/iter_utils.c config.h $(srcdir)/i
$(srcdir)/sldns/str2wire.h
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)/dnscrypt/cert.h $(srcdir)/
services/outside_network
.h
\
$(srcdir)/
util/rbtree.h $(srcdir)/util/log
.h $(srcdir)/util/
config_fil
e.h
\
$(srcdir)/util/net_help.h $(srcdir)/sldns/sbuffer.h
$(srcdir)/dnscrypt/cert.h $(srcdir)/
util/locks.h $(srcdir)/util/log
.h
\
$(srcdir)/
services/outside_network
.h $(srcdir)/util/
rbtre
e.h
\
$(srcdir)/util/config_file.h
$(srcdir)/util/net_help.h $(srcdir)/sldns/sbuffer.h
localzone.lo localzone.o
:
$(srcdir)/services/localzone.c config.h $(srcdir)/services/localzone.h
\
$(srcdir)/util/rbtree.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storage/dnstree.h
\
$(srcdir)/util/module.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/data/msgreply.h
\
...
...
@@ -749,8 +749,8 @@ localzone.lo localzone.o: $(srcdir)/services/localzone.c config.h $(srcdir)/serv
$(srcdir)/util/as112.h
mesh.lo mesh.o
:
$(srcdir)/services/mesh.c config.h $(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h
\
$(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.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/module.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
locks
.h $(srcdir)/util/
log
.h $(srcdir)/util/
data/msgparse
.h
\
$(srcdir)/util/
storage/lruhash
.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/outbound_list.h $(srcdir)/services/cache/dns.h $(srcdir)/util/net_help.h
\
$(srcdir)/util/regional.h $(srcdir)/util/data/msgencode.h $(srcdir)/util/timehist.h $(srcdir)/util/fptr_wlist.h
\
...
...
@@ -777,12 +777,12 @@ view.lo view.o: $(srcdir)/services/view.c config.h $(srcdir)/services/view.h $(s
outbound_list.lo outbound_list.o
:
$(srcdir)/services/outbound_list.c config.h
\
$(srcdir)/services/outbound_list.h $(srcdir)/services/outside_network.h $(srcdir)/util/rbtree.h
\
$(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h
$(srcdir)/dnscrypt/cert.h
$(srcdir)/util/locks.h $(srcdir)/util/log.h
outside_network.lo outside_network.o
:
$(srcdir)/services/outside_network.c config.h
\
$(srcdir)/services/outside_network.h $(srcdir)/util/rbtree.h $(srcdir)/util/netevent.h
\
$(srcdir)/dnscrypt/dnscrypt.h $(srcdir)/dnscrypt/cert.h
\
$(srcdir)/
services/listen_dnsport
.h $(srcdir)/services/
cache/infra
.h
\
$(srcdir)/
util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log
.h $(srcdir)/util/storage/dnstree.h
\
$(srcdir)/
util/locks.h $(srcdir)/util/log
.h
$(srcdir)/services/
listen_dnsport
.h
\
$(srcdir)/
services/cache/infra.h $(srcdir)/util/storage/lruhash
.h $(srcdir)/util/storage/dnstree.h
\
$(srcdir)/util/rtt.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h
\
$(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h $(srcdir)/util/data/msgencode.h
\
$(srcdir)/util/data/dname.h $(srcdir)/util/net_help.h $(srcdir)/util/random.h $(srcdir)/util/fptr_wlist.h
\
...
...
@@ -830,7 +830,7 @@ authzone.lo authzone.o: $(srcdir)/services/authzone.c config.h $(srcdir)/service
$(srcdir)/validator/val_secalgo.h
fptr_wlist.lo fptr_wlist.o
:
$(srcdir)/util/fptr_wlist.c config.h $(srcdir)/util/fptr_wlist.h
\
$(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
storage/lruhash
.h $(srcdir)/util/lo
cks
.h $(srcdir)/util/
log
.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
locks
.h $(srcdir)/util/lo
g
.h $(srcdir)/util/
storage/lruhash
.h
\
$(srcdir)/util/module.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h
\
$(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h $(srcdir)/util/tube.h
\
$(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h $(srcdir)/services/modstack.h $(srcdir)/util/mini_event.h
\
...
...
@@ -851,8 +851,8 @@ locks.lo locks.o: $(srcdir)/util/locks.c config.h $(srcdir)/util/locks.h $(srcdi
log.lo log.o
:
$(srcdir)/util/log.c config.h $(srcdir)/util/log.h $(srcdir)/util/locks.h $(srcdir)/sldns/sbuffer.h
mini_event.lo mini_event.o
:
$(srcdir)/util/mini_event.c config.h $(srcdir)/util/mini_event.h $(srcdir)/util/rbtree.h
\
$(srcdir)/util/fptr_wlist.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
storage/lruhash
.h
\
$(srcdir)/util/
locks.h $(srcdir)/util/log
.h $(srcdir)/util/module.h $(srcdir)/util/data/msgreply.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
locks.h $(srcdir)/util/log
.h
\
$(srcdir)/util/
storage/lruhash
.h $(srcdir)/util/module.h $(srcdir)/util/data/msgreply.h
\
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h
\
$(srcdir)/sldns/rrdef.h $(srcdir)/util/tube.h $(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h
\
$(srcdir)/services/modstack.h
...
...
@@ -860,8 +860,8 @@ module.lo module.o: $(srcdir)/util/module.c config.h $(srcdir)/util/module.h $(s
$(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 $(srcdir)/sldns/rrdef.h $(srcdir)/sldns/wire2str.h
netevent.lo netevent.o
:
$(srcdir)/util/netevent.c config.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
ub_event
.h $(srcdir)/util/log.h
\
$(srcdir)/util/net_help.h $(srcdir)/util/fptr_wlist.h $(srcdir)/util/storage/lruhash.h
$(srcdir)/util/locks.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
locks
.h $(srcdir)/util/log.h
\
$(srcdir)/util/ub_event.h
$(srcdir)/util/net_help.h $(srcdir)/util/fptr_wlist.h $(srcdir)/util/storage/lruhash.h
\
$(srcdir)/util/module.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h
\
$(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h $(srcdir)/util/tube.h
\
$(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h $(srcdir)/services/modstack.h $(srcdir)/sldns/sbuffer.h
\
...
...
@@ -876,7 +876,7 @@ net_help.lo net_help.o: $(srcdir)/util/net_help.c config.h $(srcdir)/util/net_he
random.lo random.o
:
$(srcdir)/util/random.c config.h $(srcdir)/util/random.h $(srcdir)/util/log.h
rbtree.lo rbtree.o
:
$(srcdir)/util/rbtree.c config.h $(srcdir)/util/log.h $(srcdir)/util/fptr_wlist.h
\
$(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
storage/lruhash
.h $(srcdir)/util/lo
cks
.h $(srcdir)/util/
log
.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
locks
.h $(srcdir)/util/lo
g
.h $(srcdir)/util/
storage/lruhash
.h
\
$(srcdir)/util/module.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h
\
$(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h $(srcdir)/util/tube.h
\
$(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h $(srcdir)/services/modstack.h
...
...
@@ -897,19 +897,19 @@ slabhash.lo slabhash.o: $(srcdir)/util/storage/slabhash.c config.h $(srcdir)/uti
timehist.lo timehist.o
:
$(srcdir)/util/timehist.c config.h $(srcdir)/util/timehist.h $(srcdir)/util/log.h
tube.lo tube.o
:
$(srcdir)/util/tube.c config.h $(srcdir)/util/tube.h $(srcdir)/util/log.h $(srcdir)/util/net_help.h
\
$(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/fptr_wlist.h $(srcdir)/util/storage/lruhash.h
$(srcdir)/util/locks.h
\
$(srcdir)/dnscrypt/cert.h
$(srcdir)/util/locks.h
$(srcdir)/util/fptr_wlist.h $(srcdir)/util/storage/lruhash.h
\
$(srcdir)/util/module.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h
\
$(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h $(srcdir)/services/mesh.h
\
$(srcdir)/util/rbtree.h $(srcdir)/services/modstack.h $(srcdir)/util/ub_event.h
ub_event.lo ub_event.o
:
$(srcdir)/util/ub_event.c config.h $(srcdir)/util/ub_event.h $(srcdir)/util/log.h
\
$(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/tube.h $(srcdir)/util/mini_event.h $(srcdir)/util/rbtree.h
$(srcdir)/dnscrypt/cert.h
$(srcdir)/util/locks.h
$(srcdir)/util/tube.h $(srcdir)/util/mini_event.h $(srcdir)/util/rbtree.h
ub_event_pluggable.lo ub_event_pluggable.o
:
$(srcdir)/util/ub_event_pluggable.c config.h $(srcdir)/util/ub_event.h
\
$(srcdir)/libunbound/unbound-event.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/lo
g
.h $(srcdir)/util/
fptr_wlist
.h
\
$(srcdir)/util/
storage/lruhash
.h $(srcdir)/util/
locks
.h $(srcdir)/util/module.h
$(srcdir)/util/data/msgreply.h
\
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/data/msgparse.h
$(srcdir)/sldns/pkthdr.h
\
$(srcdir)/sldns/rrdef.h $(srcdir)/util/tube.h $(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/lo
cks
.h $(srcdir)/util/
log
.h
\
$(srcdir)/util/
fptr_wlist
.h $(srcdir)/util/
storage/lruhash
.h $(srcdir)/util/module.h
\
$(srcdir)/util/data/msgreply.h
$(srcdir)/util/data/packed_rrset.h $(srcdir)/util/data/msgparse.h
\
$(srcdir)/sldns/pkthdr.h
$(srcdir)/sldns/rrdef.h $(srcdir)/util/tube.h $(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h
\
$(srcdir)/services/modstack.h $(srcdir)/util/mini_event.h $(srcdir)/util/rbtree.h
winsock_event.lo winsock_event.o
:
$(srcdir)/util/winsock_event.c config.h
autotrust.lo autotrust.o
:
$(srcdir)/validator/autotrust.c config.h $(srcdir)/validator/autotrust.h
\
...
...
@@ -1040,7 +1040,9 @@ checklocks.lo checklocks.o: $(srcdir)/testcode/checklocks.c config.h $(srcdir)/u
$(srcdir)/testcode/checklocks.h
dnscrypt.lo dnscrypt.o
:
$(srcdir)/dnscrypt/dnscrypt.c config.h $(srcdir)/sldns/sbuffer.h
\
$(srcdir)/util/config_file.h $(srcdir)/util/net_help.h $(srcdir)/util/log.h $(srcdir)/util/netevent.h
\
$(srcdir)/dnscrypt/dnscrypt.h $(srcdir)/dnscrypt/cert.h
$(srcdir)/dnscrypt/dnscrypt.h $(srcdir)/dnscrypt/cert.h
\
$(srcdir)/util/locks.h $(srcdir)/util/storage/slabhash.h $(srcdir)/util/storage/lruhash.h
\
$(srcdir)/util/storage/lookup3.h
ipsecmod.lo ipsecmod.o
:
$(srcdir)/ipsecmod/ipsecmod.c config.h $(srcdir)/ipsecmod/ipsecmod.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
\
...
...
@@ -1174,9 +1176,10 @@ stats.lo stats.o: $(srcdir)/daemon/stats.c config.h $(srcdir)/daemon/stats.h $(s
$(srcdir)/daemon/daemon.h $(srcdir)/services/modstack.h
\
$(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h $(srcdir)/services/outside_network.h
\
$(srcdir)/services/listen_dnsport.h $(srcdir)/util/config_file.h $(srcdir)/util/tube.h $(srcdir)/util/net_help.h
\
$(srcdir)/validator/validator.h $(srcdir)/validator/val_utils.h $(srcdir)/services/cache/rrset.h
\
$(srcdir)/util/storage/slabhash.h $(srcdir)/services/cache/infra.h $(srcdir)/util/storage/dnstree.h
\
$(srcdir)/util/rtt.h $(srcdir)/validator/val_kcache.h
$(srcdir)/validator/validator.h $(srcdir)/validator/val_utils.h $(srcdir)/iterator/iterator.h
\
$(srcdir)/services/outbound_list.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h
\
$(srcdir)/services/cache/infra.h $(srcdir)/util/storage/dnstree.h $(srcdir)/util/rtt.h
\
$(srcdir)/validator/val_kcache.h
unbound.lo unbound.o
:
$(srcdir)/daemon/unbound.c config.h $(srcdir)/util/log.h $(srcdir)/daemon/daemon.h
\
$(srcdir)/util/locks.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h
\
$(srcdir)/daemon/remote.h
\
...
...
@@ -1207,16 +1210,15 @@ worker.lo worker.o: $(srcdir)/daemon/worker.c config.h $(srcdir)/util/log.h $(sr
$(srcdir)/libunbound/libworker.h $(srcdir)/sldns/wire2str.h $(srcdir)/util/shm_side/shm_main.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)/dnscrypt/cert.h $(srcdir)/util/rbtree.h
\
$(srcdir)/testcode/fake_event.h $(srcdir)/daemon/remote.h
\
$(srcdir)/util/config_file.h $(srcdir)/sldns/keyraw.h $(srcdir)/daemon/unbound.c $(srcdir)/util/log.h
\
$(srcdir)/daemon/daemon.h $(srcdir)/util/locks.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h
\
$(srcdir)/util/storage/slabhash.h $(srcdir)/util/storage/lruhash.h
\
$(srcdir)/services/listen_dnsport.h $(srcdir)/services/cache/rrset.h
\
$(srcdir)/util/data/packed_rrset.h $(srcdir)/services/cache/infra.h $(srcdir)/util/storage/dnstree.h
\
$(srcdir)/util/rtt.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/fptr_wlist.h $(srcdir)/util/module.h
\
$(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h $(srcdir)/util/tube.h
\
$(srcdir)/services/mesh.h $(srcdir)/util/net_help.h $(srcdir)/util/ub_event.h
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/locks.h $(srcdir)/util/log.h
\
$(srcdir)/util/rbtree.h $(srcdir)/testcode/fake_event.h $(srcdir)/daemon/remote.h
\
$(srcdir)/util/config_file.h $(srcdir)/sldns/keyraw.h $(srcdir)/daemon/unbound.c $(srcdir)/daemon/daemon.h
\
$(srcdir)/util/alloc.h $(srcdir)/services/modstack.h
\
$(srcdir)/util/storage/slabhash.h $(srcdir)/util/storage/lruhash.h $(srcdir)/services/listen_dnsport.h
\
$(srcdir)/services/cache/rrset.h $(srcdir)/util/data/packed_rrset.h $(srcdir)/services/cache/infra.h
\
$(srcdir)/util/storage/dnstree.h $(srcdir)/util/rtt.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/fptr_wlist.h
\
$(srcdir)/util/module.h $(srcdir)/util/data/msgparse.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h
\
$(srcdir)/util/tube.h $(srcdir)/services/mesh.h $(srcdir)/util/net_help.h $(srcdir)/util/ub_event.h
testpkts.lo testpkts.o
:
$(srcdir)/testcode/testpkts.c config.h $(srcdir)/testcode/testpkts.h
\
$(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
...
...
@@ -1266,17 +1268,19 @@ stats.lo stats.o: $(srcdir)/daemon/stats.c config.h $(srcdir)/daemon/stats.h $(s
$(srcdir)/daemon/daemon.h $(srcdir)/services/modstack.h
\
$(srcdir)/services/mesh.h $(srcdir)/util/rbtree.h $(srcdir)/services/outside_network.h
\
$(srcdir)/services/listen_dnsport.h $(srcdir)/util/config_file.h $(srcdir)/util/tube.h $(srcdir)/util/net_help.h
\
$(srcdir)/validator/validator.h $(srcdir)/validator/val_utils.h $(srcdir)/services/cache/rrset.h
\
$(srcdir)/util/storage/slabhash.h $(srcdir)/services/cache/infra.h $(srcdir)/util/storage/dnstree.h
\
$(srcdir)/util/rtt.h $(srcdir)/validator/val_kcache.h
$(srcdir)/validator/validator.h $(srcdir)/validator/val_utils.h $(srcdir)/iterator/iterator.h
\
$(srcdir)/services/outbound_list.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h
\
$(srcdir)/services/cache/infra.h $(srcdir)/util/storage/dnstree.h $(srcdir)/util/rtt.h
\
$(srcdir)/validator/val_kcache.h
replay.lo replay.o
:
$(srcdir)/testcode/replay.c config.h $(srcdir)/util/log.h $(srcdir)/util/net_help.h
\
$(srcdir)/util/config_file.h $(srcdir)/testcode/replay.h $(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/testcode/testpkts.h
\
$(srcdir)/util/rbtree.h $(srcdir)/testcode/fake_event.h $(srcdir)/sldns/str2wire.h $(srcdir)/sldns/rrdef.h
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/locks.h
\
$(srcdir)/testcode/testpkts.h $(srcdir)/util/rbtree.h $(srcdir)/testcode/fake_event.h $(srcdir)/sldns/str2wire.h
\
$(srcdir)/sldns/rrdef.h
fake_event.lo fake_event.o
:
$(srcdir)/testcode/fake_event.c config.h $(srcdir)/testcode/fake_event.h
\
$(srcdir)/util/netevent.h $(srcdir)/dnscrypt/dnscrypt.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
net_help
.h $(srcdir)/util/log.h $(srcdir)/util/
data/msgparse
.h
\
$(srcdir)/util/
storage/lruhash
.h $(srcdir)/util/
locks
.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h
\
$(srcdir)/dnscrypt/cert.h $(srcdir)/util/
locks
.h $(srcdir)/util/log.h $(srcdir)/util/
net_help
.h
\
$(srcdir)/util/
data/msgparse
.h $(srcdir)/util/
storage/lruhash
.h $(srcdir)/sldns/pkthdr.h $(srcdir)/sldns/rrdef.h
\
$(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/data/msgencode.h
\
$(srcdir)/util/data/dname.h $(srcdir)/util/config_file.h $(srcdir)/services/listen_dnsport.h
\
$(srcdir)/services/outside_network.h $(srcdir)/util/rbtree.h
\
...
...
@@ -1309,7 +1313,8 @@ unbound-checkconf.lo unbound-checkconf.o: $(srcdir)/smallapp/unbound-checkconf.c
$(srcdir)/iterator/iterator.h $(srcdir)/services/outbound_list.h $(srcdir)/iterator/iter_fwd.h
\
$(srcdir)/util/rbtree.h $(srcdir)/iterator/iter_hints.h $(srcdir)/util/storage/dnstree.h
\
$(srcdir)/validator/validator.h $(srcdir)/validator/val_utils.h $(srcdir)/services/localzone.h
\
$(srcdir)/services/view.h $(srcdir)/respip/respip.h $(srcdir)/sldns/sbuffer.h $(PYTHONMOD_HEADER)
$(srcdir)/services/view.h $(srcdir)/respip/respip.h $(srcdir)/sldns/sbuffer.h $(PYTHONMOD_HEADER)
\
$(srcdir)/edns-subnet/subnet-whitelist.h
worker_cb.lo worker_cb.o
:
$(srcdir)/smallapp/worker_cb.c config.h $(srcdir)/libunbound/context.h
\
$(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/alloc.h $(srcdir)/util/rbtree.h $(srcdir)/services/modstack.h
\
$(srcdir)/libunbound/unbound.h $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h
\
...
...
acx_nlnetlabs.m4
View file @
a6c5280e
...
...
@@ -688,8 +688,8 @@ AC_DEFUN([ACX_SSL_CHECKS], [
# check if -lwsock32 or -lgdi32 are needed.
BAKLIBS="$LIBS"
BAKSSLLIBS="$LIBSSL_LIBS"
LIBS="$LIBS -lgdi32"
LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
LIBS="$LIBS -lgdi32
-lws2_32
"
LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32
-lws2_32
"
AC_MSG_CHECKING([if -lcrypto needs -lgdi32])
AC_TRY_LINK([], [
int HMAC_Update(void);
...
...
@@ -839,7 +839,11 @@ dnl see if on windows
if test "$ac_cv_header_windows_h" = "yes"; then
AC_DEFINE(USE_WINSOCK, 1, [Whether the windows socket API is used])
USE_WINSOCK="1"
LIBS="$LIBS -lws2_32"
if echo $LIBS | grep 'lws2_32' >/dev/null; then
:
else
LIBS="$LIBS -lws2_32"
fi
fi
],
dnl no quick getaddrinfo, try mingw32 and winsock2 library.
...
...
cachedb/cachedb.c
View file @
a6c5280e
...
...
@@ -61,6 +61,8 @@
/** the unit test testframe for cachedb, its module state contains
* a cache for a couple queries (in memory). */
struct
testframe_moddata
{
/** lock for mutex */
lock_basic_type
lock
;
/** key for single stored data element, NULL if none */
char
*
stored_key
;
/** data for single stored data element, NULL if none */
...
...
@@ -72,14 +74,18 @@ struct testframe_moddata {
static
int
testframe_init
(
struct
module_env
*
env
,
struct
cachedb_env
*
cachedb_env
)
{
struct
testframe_moddata
*
d
;
(
void
)
env
;
verbose
(
VERB_ALGO
,
"testframe_init"
);
cachedb_env
->
backend_data
=
(
void
*
)
calloc
(
1
,
d
=
(
struct
testframe_moddata
*
)
calloc
(
1
,
sizeof
(
struct
testframe_moddata
));
cachedb_env
->
backend_data
=
(
void
*
)
d
;
if
(
!
cachedb_env
->
backend_data
)
{
log_err
(
"out of memory"
);
return
0
;
}
lock_basic_init
(
&
d
->
lock
);
lock_protect
(
&
d
->
lock
,
d
,
sizeof
(
*
d
));
return
1
;
}
...
...
@@ -92,6 +98,7 @@ testframe_deinit(struct module_env* env, struct cachedb_env* cachedb_env)
verbose
(
VERB_ALGO
,
"testframe_deinit"
);
if
(
!
d
)
return
;
lock_basic_destroy
(
&
d
->
lock
);
free
(
d
->
stored_key
);
free
(
d
->
stored_data
);
free
(
d
);
...
...
@@ -105,17 +112,22 @@ testframe_lookup(struct module_env* env, struct cachedb_env* cachedb_env,
cachedb_env
->
backend_data
;
(
void
)
env
;
verbose
(
VERB_ALGO
,
"testframe_lookup of %s"
,
key
);
lock_basic_lock
(
&
d
->
lock
);
if
(
d
->
stored_key
&&
strcmp
(
d
->
stored_key
,
key
)
==
0
)
{
if
(
d
->
stored_datalen
>
sldns_buffer_capacity
(
result_buffer
))
if
(
d
->
stored_datalen
>
sldns_buffer_capacity
(
result_buffer
))
{
lock_basic_unlock
(
&
d
->
lock
);
return
0
;
/* too large */
}
verbose
(
VERB_ALGO
,
"testframe_lookup found %d bytes"
,
(
int
)
d
->
stored_datalen
);
sldns_buffer_clear
(
result_buffer
);
sldns_buffer_write
(
result_buffer
,
d
->
stored_data
,
d
->
stored_datalen
);
sldns_buffer_flip
(
result_buffer
);
lock_basic_unlock
(
&
d
->
lock
);
return
1
;
}
lock_basic_unlock
(
&
d
->
lock
);
return
0
;
}
...
...
@@ -126,6 +138,7 @@ testframe_store(struct module_env* env, struct cachedb_env* cachedb_env,
struct
testframe_moddata
*
d
=
(
struct
testframe_moddata
*
)
cachedb_env
->
backend_data
;
(
void
)
env
;
lock_basic_lock
(
&
d
->
lock
);
verbose
(
VERB_ALGO
,
"testframe_store %s (%d bytes)"
,
key
,
(
int
)
data_len
);
/* free old data element (if any) */
...
...
@@ -137,6 +150,7 @@ testframe_store(struct module_env* env, struct cachedb_env* cachedb_env,
d
->
stored_data
=
memdup
(
data
,
data_len
);
if
(
!
d
->
stored_data
)
{
lock_basic_unlock
(
&
d
->
lock
);
log_err
(
"out of memory"
);
return
;
}
...
...
@@ -146,8 +160,10 @@ testframe_store(struct module_env* env, struct cachedb_env* cachedb_env,
free
(
d
->
stored_data
);
d
->
stored_data
=
NULL
;
d
->
stored_datalen
=
0
;
lock_basic_unlock
(
&
d
->
lock
);
return
;
}
lock_basic_unlock
(
&
d
->
lock
);
/* (key,data) successfully stored */
}
...
...
@@ -170,16 +186,17 @@ cachedb_find_backend(const char* str)
static
int
cachedb_apply_cfg
(
struct
cachedb_env
*
cachedb_env
,
struct
config_file
*
cfg
)
{
const
char
*
backend_str
=
"testframe"
;
/* TODO get from cfg */
(
void
)
cfg
;
/* need this until the TODO is implemented */
if
(
backend_str
&&
backend_str
[
0
])
{
cachedb_env
->
backend
=
cachedb_find_backend
(
backend_str
)
;
if
(
!
cachedb_env
->
backend
)
{
log_err
(
"cachedb: cannot
find
backend
name '%s"
,
backend
_str
);
return
0
;
}
const
char
*
backend_str
=
cfg
->
cachedb_backend
;
/* If unspecified we use the in-memory test DB. */
if
(
!
backend_str
)
backend_str
=
"testframe"
;
cachedb_env
->
backend
=
cachedb_
find
_
backend
(
backend_str
);
if
(
!
cachedb_env
->
backend
)
{
log_err
(
"cachedb: cannot find backend name '%s'"
,
backend_str
)
;
return
0
;
}
/* TODO see if more configuration needs to be applied or not */
return
1
;
}
...
...
@@ -277,9 +294,10 @@ calc_hash(struct module_qstate* qstate, char* buf, size_t len)
size_t
clen
=
0
;
uint8_t
hash
[
CACHEDB_HASHSIZE
/
8
];
const
char
*
hex
=
"0123456789ABCDEF"
;
const
char
*
secret
=
"default"
;
/* TODO: from qstate->env->cfg */
const
char
*
secret
=
qstate
->
env
->
cfg
->
cachedb_secret
?
qstate
->
env
->
cfg
->
cachedb_secret
:
"default"
;
size_t
i
;
/* copy the hash info into the clear buffer */
if
(
clen
+
qstate
->
qinfo
.
qname_len
<
sizeof
(
clear
))
{
memmove
(
clear
+
clen
,
qstate
->
qinfo
.
qname
,
...
...
config.h.in
View file @
a6c5280e
...
...
@@ -296,6 +296,9 @@
/* Define to 1 if you have the <nettle/dsa-compat.h> header file. */
#undef HAVE_NETTLE_DSA_COMPAT_H
/* Define to 1 if you have the <nettle/eddsa.h> header file. */
#undef HAVE_NETTLE_EDDSA_H
/* Use libnss for crypto */
#undef HAVE_NSS
...
...
configure
View file @
a6c5280e
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for unbound 1.6.
5
.
# Generated by GNU Autoconf 2.69 for unbound 1.6.
6
.
#
# Report bugs to <unbound-bugs@nlnetlabs.nl>.
#
...
...
@@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='unbound'
PACKAGE_TARNAME='unbound'
PACKAGE_VERSION='1.6.
5
'
PACKAGE_STRING='unbound 1.6.
5
'
PACKAGE_VERSION='1.6.
6
'
PACKAGE_STRING='unbound 1.6.
6
'
PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
PACKAGE_URL=''
...
...
@@ -1437,7 +1437,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.6.
5
to adapt to many kinds of systems.
\`configure' configures unbound 1.6.
6
to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
...
...
@@ -1502,7 +1502,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of unbound 1.6.
5
:";;
short | recursive ) echo "Configuration of unbound 1.6.
6
:";;
esac
cat <<\_ACEOF
...
...
@@ -1714,7 +1714,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
unbound configure 1.6.
5
unbound configure 1.6.
6
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
...
...
@@ -2423,7 +2423,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.6.
5
, which was
It was created by unbound $as_me 1.6.
6
, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
...
...
@@ -2775,11 +2775,11 @@ UNBOUND_VERSION_MAJOR=1
UNBOUND_VERSION_MINOR=6
UNBOUND_VERSION_MICRO=
5
UNBOUND_VERSION_MICRO=
6
LIBUNBOUND_CURRENT=7
LIBUNBOUND_REVISION=
4
LIBUNBOUND_REVISION=
5
LIBUNBOUND_AGE=5
# 1.0.0 had 0:12:0
# 1.0.1 had 0:13:0
...
...
@@ -2835,6 +2835,7 @@ LIBUNBOUND_AGE=5
# 1.6.3 had 7:2:5
# 1.6.4 had 7:3:5
# 1.6.5 had 7:4:5
# 1.6.6 had 7:5:5
# Current -- the number of the binary API that we're implementing
# Revision -- which iteration of the implementation of the binary
...
...
@@ -16464,7 +16465,9 @@ if test x"$ax_pthread_ok" = xyes; then
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
LIBS="$PTHREAD_LIBS $LIBS"
if test -n "$PTHREAD_LIBS"; then
LIBS="$PTHREAD_LIBS $LIBS"
fi
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
ub_have_pthreads=yes
...
...
@@ -16894,8 +16897,16 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
LIBS="$PYTHON_LDFLAGS $LIBS"
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
if test -n "$LIBS"; then
LIBS="$PYTHON_LDFLAGS $LIBS"
else
LIBS="$PYTHON_LDFLAGS"
fi
if test -n "$CPPFLAGS"; then
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
else
CPPFLAGS="$PYTHON_CPPFLAGS"
fi
ub_have_python=yes
PC_PY_DEPENDENCY="python"
...
...
@@ -17250,8 +17261,8 @@ $as_echo "no" >&6; }
# check if -lwsock32 or -lgdi32 are needed.
BAKLIBS="$LIBS"
BAKSSLLIBS="$LIBSSL_LIBS"
LIBS="$LIBS -lgdi32"
LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
LIBS="$LIBS -lgdi32
-lws2_32
"
LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32
-lws2_32
"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
...
...
@@ -18053,6 +18064,7 @@ case "$enable_dsa" in
;;
*)
# detect if DSA is supported, and turn it off if not.
if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
...
...
@@ -18067,6 +18079,13 @@ else
fi
fi
else
cat >>confdefs.h <<_ACEOF
#define USE_DSA 1
_ACEOF
fi
;;
esac
...
...
@@ -18096,11 +18115,6 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
if test $ac_have_decl = 1; then :
cat >>confdefs.h <<_ACEOF
#define USE_ED25519 1
_ACEOF
use_ed25519="yes"
else
...
...
@@ -18108,6 +18122,28 @@ else
fi
fi
fi
if test $USE_NETTLE = "yes"; then
for ac_header in nettle/eddsa.h
do :
ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
"
if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_NETTLE_EDDSA_H 1
_ACEOF
use_ed25519="yes"
fi
done
fi
if test $use_ed25519 = "yes"; then
cat >>confdefs.h <<_ACEOF
#define USE_ED25519 1
_ACEOF
fi
;;
esac
...
...
@@ -18621,7 +18657,12 @@ if test x_$enable_static_exe = x_yes; then
if test "$on_mingw" = yes; then
staticexe="-all-static"
# for static compile, include gdi32 and zlib here.
LIBS="$LIBS -lgdi32 -lz"
if echo $LIBS | grep 'lgdi32' >/dev/null; then
:
else
LIBS="$LIBS -lgdi32"
fi
LIBS="$LIBS -lz"
fi
fi
...
...
@@ -18979,7 +19020,11 @@ if test "$ac_cv_header_windows_h" = "yes"; then
$as_echo "#define USE_WINSOCK 1" >>confdefs.h
USE_WINSOCK="1"
LIBS="$LIBS -lws2_32"
if echo $LIBS | grep 'lws2_32' >/dev/null; then
:
else
LIBS="$LIBS -lws2_32"
fi
fi
else
...
...
@@ -20633,7 +20678,12 @@ $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
fi
LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
if test -n "$LATE_LDFLAGS"; then
LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
fi
# remove start spaces
LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
cat >>confdefs.h <<_ACEOF
...
...
@@ -20643,7 +20693,7 @@ _ACEOF
version=1.6.
5
version=1.6.
6
date=`date +'%b %e, %Y'`
...
...
@@ -21162,7 +21212,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by unbound $as_me 1.6.
5
, which was
This file was extended by unbound $as_me 1.6.
6
, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
...
...
@@ -21228,7 +21278,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
unbound config.status 1.6.
5
unbound config.status 1.6.
6
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
...
...
configure.ac
View file @
a6c5280e
...
...
@@ -11,14 +11,14 @@ sinclude(dnscrypt/dnscrypt.m4)
# must be numbers. ac_defun because of later processing
m4_define([VERSION_MAJOR],[1])
m4_define([VERSION_MINOR],[6])
m4_define([VERSION_MICRO],[
5
])
m4_define([VERSION_MICRO],[
6
])
AC_INIT(unbound, m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]), unbound-bugs@nlnetlabs.nl, unbound)
AC_SUBST(UNBOUND_VERSION_MAJOR, [VERSION_MAJOR])
AC_SUBST(UNBOUND_VERSION_MINOR, [VERSION_MINOR])
AC_SUBST(UNBOUND_VERSION_MICRO, [VERSION_MICRO])
LIBUNBOUND_CURRENT=7
LIBUNBOUND_REVISION=
4
LIBUNBOUND_REVISION=
5
LIBUNBOUND_AGE=5
# 1.0.0 had 0:12:0
# 1.0.1 had 0:13:0
...
...
@@ -74,6 +74,7 @@ LIBUNBOUND_AGE=5
# 1.6.3 had 7:2:5
# 1.6.4 had 7:3:5
# 1.6.5 had 7:4:5
# 1.6.6 had 7:5:5
# Current -- the number of the binary API that we're implementing
# Revision -- which iteration of the implementation of the binary
...
...
@@ -456,7 +457,9 @@ ub_have_pthreads=no
if test x_$withval != x_no; then
AX_PTHREAD([
AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.])
LIBS="$PTHREAD_LIBS $LIBS"
if test -n "$PTHREAD_LIBS"; then
LIBS="$PTHREAD_LIBS $LIBS"
fi
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
ub_have_pthreads=yes
...
...
@@ -558,8 +561,16 @@ if test x_$ub_test_python != x_no; then
AC_SUBST(PY_MAJOR_VERSION)
# Have Python
AC_DEFINE(HAVE_PYTHON,1,[Define if you have Python libraries and header files.])
LIBS="$PYTHON_LDFLAGS $LIBS"
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
if test -n "$LIBS"; then
LIBS="$PYTHON_LDFLAGS $LIBS"
else
LIBS="$PYTHON_LDFLAGS"
fi
if test -n "$CPPFLAGS"; then
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
else
CPPFLAGS="$PYTHON_CPPFLAGS"
fi
ub_have_python=yes
PC_PY_DEPENDENCY="python"
AC_SUBST(PC_PY_DEPENDENCY)
...
...
@@ -912,10 +923,14 @@ case "$enable_dsa" in