mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
val-override-date: -1 ignores dates entirely, for NTP usage.
git-svn-id: file:///svn/unbound/trunk@2410 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
efb9c02d54
commit
3922eed584
4 changed files with 8 additions and 2 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
not withheld if it is bogus. Thus, unbound will retry if it is bad
|
not withheld if it is bogus. Thus, unbound will retry if it is bad
|
||||||
and curb the TTL if it is bad, thus protecting the cache for use by
|
and curb the TTL if it is bad, thus protecting the cache for use by
|
||||||
downstream validators.
|
downstream validators.
|
||||||
|
- val-override-date: -1 ignores dates entirely, for NTP usage.
|
||||||
|
|
||||||
29 March 2011: Wouter
|
29 March 2011: Wouter
|
||||||
- harden-below-nxdomain: changed so that it activates when the
|
- harden-below-nxdomain: changed so that it activates when the
|
||||||
|
|
|
||||||
|
|
@ -352,7 +352,7 @@ server:
|
||||||
|
|
||||||
# Override the date for validation with a specific fixed date.
|
# Override the date for validation with a specific fixed date.
|
||||||
# Do not set this unless you are debugging signature inception
|
# Do not set this unless you are debugging signature inception
|
||||||
# and expiration. "" or "0" turns the feature off.
|
# and expiration. "" or "0" turns the feature off. -1 ignores date.
|
||||||
# val-override-date: ""
|
# val-override-date: ""
|
||||||
|
|
||||||
# The time to live for bogus data, rrsets and messages. This avoids
|
# The time to live for bogus data, rrsets and messages. This avoids
|
||||||
|
|
|
||||||
|
|
@ -608,7 +608,8 @@ externally can create validation failures for that internal domain.
|
||||||
Default is "" or "0", which disables this debugging feature. If enabled by
|
Default is "" or "0", which disables this debugging feature. If enabled by
|
||||||
giving a RRSIG style date, that date is used for verifying RRSIG inception
|
giving a RRSIG style date, that date is used for verifying RRSIG inception
|
||||||
and expiration dates, instead of the current date. Do not set this unless
|
and expiration dates, instead of the current date. Do not set this unless
|
||||||
you are debugging signature inception and expiration.
|
you are debugging signature inception and expiration. The value \-1 ignores
|
||||||
|
the date altogether, useful for some special applications.
|
||||||
.TP
|
.TP
|
||||||
.B val\-sig\-skew\-min: \fI<seconds>
|
.B val\-sig\-skew\-min: \fI<seconds>
|
||||||
Minimum number of seconds of clock skew to apply to validated signatures.
|
Minimum number of seconds of clock skew to apply to validated signatures.
|
||||||
|
|
|
||||||
|
|
@ -1211,6 +1211,10 @@ check_dates(struct val_env* ve, uint32_t unow,
|
||||||
|
|
||||||
/* get current date */
|
/* get current date */
|
||||||
if(ve->date_override) {
|
if(ve->date_override) {
|
||||||
|
if(ve->date_override == -1) {
|
||||||
|
verbose(VERB_ALGO, "date override: ignore date");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
now = ve->date_override;
|
now = ve->date_override;
|
||||||
verbose(VERB_ALGO, "date override option %d", (int)now);
|
verbose(VERB_ALGO, "date override option %d", (int)now);
|
||||||
} else now = (int32_t)unow;
|
} else now = (int32_t)unow;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue