Skip to content

Commit b78aef7

Browse files
authored
Merge pull request #5 from internetstandards/inl_1.19.1
Update the internetnl branch to version 1.19.1
2 parents 09b62cc + 2cb38ec commit b78aef7

20 files changed

Lines changed: 861 additions & 185 deletions

configure

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for unbound 1.19.0.
3+
# Generated by GNU Autoconf 2.69 for unbound 1.19.1.
44
#
55
# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
66
#
@@ -591,8 +591,8 @@ MAKEFLAGS=
591591
# Identity of this package.
592592
PACKAGE_NAME='unbound'
593593
PACKAGE_TARNAME='unbound'
594-
PACKAGE_VERSION='1.19.0'
595-
PACKAGE_STRING='unbound 1.19.0'
594+
PACKAGE_VERSION='1.19.1'
595+
PACKAGE_STRING='unbound 1.19.1'
596596
PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
597597
PACKAGE_URL=''
598598

@@ -1478,7 +1478,7 @@ if test "$ac_init_help" = "long"; then
14781478
# Omit some internal or obsolete options to make the list less imposing.
14791479
# This message is too long to be a string in the A/UX 3.1 sh.
14801480
cat <<_ACEOF
1481-
\`configure' configures unbound 1.19.0 to adapt to many kinds of systems.
1481+
\`configure' configures unbound 1.19.1 to adapt to many kinds of systems.
14821482

14831483
Usage: $0 [OPTION]... [VAR=VALUE]...
14841484

@@ -1544,7 +1544,7 @@ fi
15441544

15451545
if test -n "$ac_init_help"; then
15461546
case $ac_init_help in
1547-
short | recursive ) echo "Configuration of unbound 1.19.0:";;
1547+
short | recursive ) echo "Configuration of unbound 1.19.1:";;
15481548
esac
15491549
cat <<\_ACEOF
15501550

@@ -1787,7 +1787,7 @@ fi
17871787
test -n "$ac_init_help" && exit $ac_status
17881788
if $ac_init_version; then
17891789
cat <<\_ACEOF
1790-
unbound configure 1.19.0
1790+
unbound configure 1.19.1
17911791
generated by GNU Autoconf 2.69
17921792

17931793
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2496,7 +2496,7 @@ cat >config.log <<_ACEOF
24962496
This file contains any messages produced by compilers while
24972497
running configure, to aid debugging if configure makes a mistake.
24982498

2499-
It was created by unbound $as_me 1.19.0, which was
2499+
It was created by unbound $as_me 1.19.1, which was
25002500
generated by GNU Autoconf 2.69. Invocation command line was
25012501

25022502
$ $0 $@
@@ -2848,11 +2848,11 @@ UNBOUND_VERSION_MAJOR=1
28482848

28492849
UNBOUND_VERSION_MINOR=19
28502850

2851-
UNBOUND_VERSION_MICRO=0
2851+
UNBOUND_VERSION_MICRO=1
28522852

28532853

28542854
LIBUNBOUND_CURRENT=9
2855-
LIBUNBOUND_REVISION=23
2855+
LIBUNBOUND_REVISION=24
28562856
LIBUNBOUND_AGE=1
28572857
# 1.0.0 had 0:12:0
28582858
# 1.0.1 had 0:13:0
@@ -2943,6 +2943,7 @@ LIBUNBOUND_AGE=1
29432943
# 1.17.1 had 9:21:1
29442944
# 1.18.0 had 9:22:1
29452945
# 1.19.0 had 9:23:1
2946+
# 1.19.1 had 9:24:1
29462947

29472948
# Current -- the number of the binary API that we're implementing
29482949
# Revision -- which iteration of the implementation of the binary
@@ -21913,7 +21914,7 @@ _ACEOF
2191321914

2191421915

2191521916

21916-
version=1.19.0
21917+
version=1.19.1
2191721918

2191821919
date=`date +'%b %e, %Y'`
2191921920

@@ -22432,7 +22433,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2243222433
# report actual input values of CONFIG_FILES etc. instead of their
2243322434
# values after options handling.
2243422435
ac_log="
22435-
This file was extended by unbound $as_me 1.19.0, which was
22436+
This file was extended by unbound $as_me 1.19.1, which was
2243622437
generated by GNU Autoconf 2.69. Invocation command line was
2243722438

2243822439
CONFIG_FILES = $CONFIG_FILES
@@ -22498,7 +22499,7 @@ _ACEOF
2249822499
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2249922500
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2250022501
ac_cs_version="\\
22501-
unbound config.status 1.19.0
22502+
unbound config.status 1.19.1
2250222503
configured by $0, generated by GNU Autoconf 2.69,
2250322504
with options \\"\$ac_cs_config\\"
2250422505

configure.ac

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ sinclude(dnscrypt/dnscrypt.m4)
1111
# must be numbers. ac_defun because of later processing
1212
m4_define([VERSION_MAJOR],[1])
1313
m4_define([VERSION_MINOR],[19])
14-
m4_define([VERSION_MICRO],[0])
14+
m4_define([VERSION_MICRO],[1])
1515
AC_INIT([unbound],m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]),[unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues],[unbound])
1616
AC_SUBST(UNBOUND_VERSION_MAJOR, [VERSION_MAJOR])
1717
AC_SUBST(UNBOUND_VERSION_MINOR, [VERSION_MINOR])
1818
AC_SUBST(UNBOUND_VERSION_MICRO, [VERSION_MICRO])
1919

2020
LIBUNBOUND_CURRENT=9
21-
LIBUNBOUND_REVISION=23
21+
LIBUNBOUND_REVISION=24
2222
LIBUNBOUND_AGE=1
2323
# 1.0.0 had 0:12:0
2424
# 1.0.1 had 0:13:0
@@ -109,6 +109,7 @@ LIBUNBOUND_AGE=1
109109
# 1.17.1 had 9:21:1
110110
# 1.18.0 had 9:22:1
111111
# 1.19.0 had 9:23:1
112+
# 1.19.1 had 9:24:1
112113

113114
# Current -- the number of the binary API that we're implementing
114115
# Revision -- which iteration of the implementation of the binary

services/authzone.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7774,6 +7774,7 @@ static int zonemd_dnssec_verify_rrset(struct auth_zone* z,
77747774
enum sec_status sec;
77757775
struct val_env* ve;
77767776
int m;
7777+
int verified = 0;
77777778
m = modstack_find(mods, "validator");
77787779
if(m == -1) {
77797780
auth_zone_log(z->name, VERB_ALGO, "zonemd dnssec verify: have "
@@ -7797,7 +7798,7 @@ static int zonemd_dnssec_verify_rrset(struct auth_zone* z,
77977798
"zonemd: verify %s RRset with DNSKEY", typestr);
77987799
}
77997800
sec = dnskeyset_verify_rrset(env, ve, &pk, dnskey, sigalg, why_bogus, NULL,
7800-
LDNS_SECTION_ANSWER, NULL);
7801+
LDNS_SECTION_ANSWER, NULL, &verified);
78017802
if(sec == sec_status_secure) {
78027803
return 1;
78037804
}

services/cache/dns.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,28 @@ tomsg(struct module_env* env, struct query_info* q, struct reply_info* r,
690690
return msg;
691691
}
692692

693+
struct dns_msg*
694+
dns_msg_deepcopy_region(struct dns_msg* origin, struct regional* region)
695+
{
696+
size_t i;
697+
struct dns_msg* res = NULL;
698+
res = gen_dns_msg(region, &origin->qinfo, origin->rep->rrset_count);
699+
if(!res) return NULL;
700+
*res->rep = *origin->rep;
701+
if(origin->rep->reason_bogus_str) {
702+
res->rep->reason_bogus_str = regional_strdup(region,
703+
origin->rep->reason_bogus_str);
704+
}
705+
for(i=0; i<res->rep->rrset_count; i++) {
706+
res->rep->rrsets[i] = packed_rrset_copy_region(
707+
origin->rep->rrsets[i], region, 0);
708+
if(!res->rep->rrsets[i]) {
709+
return NULL;
710+
}
711+
}
712+
return res;
713+
}
714+
693715
/** synthesize RRset-only response from cached RRset item */
694716
static struct dns_msg*
695717
rrset_msg(struct ub_packed_rrset_key* rrset, struct regional* region,

services/cache/dns.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ struct dns_msg* tomsg(struct module_env* env, struct query_info* q,
164164
struct reply_info* r, struct regional* region, time_t now,
165165
int allow_expired, struct regional* scratch);
166166

167+
/**
168+
* Deep copy a dns_msg to a region.
169+
* @param origin: the dns_msg to copy.
170+
* @param region: the region to copy all the data to.
171+
* @return the new dns_msg or NULL on malloc error.
172+
*/
173+
struct dns_msg* dns_msg_deepcopy_region(struct dns_msg* origin,
174+
struct regional* region);
175+
167176
/**
168177
* Find cached message
169178
* @param env: module environment with the DNS cache.

testcode/unitverify.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ verifytest_rrset(struct module_env* env, struct val_env* ve,
180180
enum sec_status sec;
181181
char* reason = NULL;
182182
uint8_t sigalg[ALGO_NEEDS_MAX+1];
183+
int verified = 0;
183184
if(vsig) {
184185
log_nametypeclass(VERB_QUERY, "verify of rrset",
185186
rrset->rk.dname, ntohs(rrset->rk.type),
@@ -188,7 +189,7 @@ verifytest_rrset(struct module_env* env, struct val_env* ve,
188189
setup_sigalg(dnskey, sigalg); /* check all algorithms in the dnskey */
189190
/* ok to give null as qstate here, won't be used for answer section. */
190191
sec = dnskeyset_verify_rrset(env, ve, rrset, dnskey, sigalg, &reason, NULL,
191-
LDNS_SECTION_ANSWER, NULL);
192+
LDNS_SECTION_ANSWER, NULL, &verified);
192193
if(vsig) {
193194
printf("verify outcome is: %s %s\n", sec_status_to_string(sec),
194195
reason?reason:"");
@@ -442,9 +443,9 @@ nsec3_hash_test_entry(struct entry* e, rbtree_type* ct,
442443

443444
ret = nsec3_hash_name(ct, region, buf, nsec3, 0, qname,
444445
qinfo.qname_len, &hash);
445-
if(ret != 1) {
446+
if(ret < 1) {
446447
printf("Bad nsec3_hash_name retcode %d\n", ret);
447-
unit_assert(ret == 1);
448+
unit_assert(ret == 1 || ret == 2);
448449
}
449450
unit_assert(hash->dname && hash->hash && hash->hash_len &&
450451
hash->b32 && hash->b32_len);

testdata/val_any.rpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ SECTION QUESTION
162162
example.com. IN ANY
163163
ENTRY_END
164164

165+
; Allow validation resuming for the RRSIGs
166+
STEP 2 TIME_PASSES ELAPSE 0.05
167+
165168
; recursion happens here.
166169
STEP 10 CHECK_ANSWER
167170
ENTRY_BEGIN

testdata/val_any_dname.rpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ SECTION QUESTION
164164
example.com. IN ANY
165165
ENTRY_END
166166

167+
; Allow validation resuming for the RRSIGs
168+
STEP 2 TIME_PASSES ELAPSE 0.05
169+
167170
; recursion happens here.
168171
STEP 10 CHECK_ANSWER
169172
ENTRY_BEGIN

testdata/val_any_negcache.rpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ SECTION QUESTION
199199
example.com. IN ANY
200200
ENTRY_END
201201

202+
; Allow validation resuming for the RRSIGs
203+
STEP 21 TIME_PASSES ELAPSE 0.05
204+
202205
; recursion happens here.
203206
STEP 30 CHECK_ANSWER
204207
ENTRY_BEGIN

testdata/val_nx_nsec3_collision.rpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ SECTION QUESTION
156156
www.example.com. IN A
157157
ENTRY_END
158158

159+
; Allow validation resuming for NSEC3 hash calculations
160+
STEP 2 TIME_PASSES ELAPSE 0.05
161+
159162
; recursion happens here.
160163
STEP 10 CHECK_ANSWER
161164
ENTRY_BEGIN

0 commit comments

Comments
 (0)