Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
608
Issues
608
List
Boards
Labels
Service Desk
Milestones
Merge Requests
115
Merge Requests
115
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
cb61e1dd
Commit
cb61e1dd
authored
Mar 25, 2020
by
Mark Andrews
Committed by
Michał Kępień
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that a 'BADTIME' response with 'QR=0' is handled as a request
parent
a53bc0b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
bin/tests/system/tsig/badtime
bin/tests/system/tsig/badtime
+37
-0
bin/tests/system/tsig/tests.sh
bin/tests/system/tsig/tests.sh
+9
-0
util/copyrights
util/copyrights
+1
-0
No files found.
bin/tests/system/tsig/badtime
0 → 100644
View file @
cb61e1dd
# Transaction ID
1122
# Standard query
0000
# Questions: 1, Additional: 1
0001 0000 0000 0001
# QNAME: isc.org
03 69 73 63 03 6F 72 67 00
# Type: A (Host Address)
0001
# Class: IN
0001
# Specially crafted TSIG Resource Record
# Name: "sha256"
06 73 68 61 32 35 36 00
# Type: TSIG (Transaction Signature)
00fa
# Class: ANY
00ff
# TTL: 0
00000000
# RdLen: 29
001d
# Algorithm Name: hmac-sha256
0b 68 6D 61 63 2D 73 68 61 32 35 36 00
# Time Signed: Jan 1, 1970 01:00:00.000000000 CET
00 00 00 00 00 00
# Fudge: 300
012c
# MAC Size: 0; MAC: empty
0000
# Original ID: 0
0000
# Error: BADSIG
0010
# Other Data Length: 0
0000
bin/tests/system/tsig/tests.sh
View file @
cb61e1dd
...
...
@@ -212,5 +212,14 @@ ret=0
$KEYGEN
-a
hmac-sha256
-b
128
-n
host example.net
>
keygen.out3 2>&1
&&
ret
=
1
grep
"unknown algorithm"
keygen.out3
>
/dev/null
||
ret
=
1
echo_i
"check that a 'BADTIME' response with 'QR=0' is handled as a request"
ret
=
0
$PERL
../packet.pl
-a
10.53.0.1
-p
${
PORT
}
-t
tcp < badtime
>
/dev/null
$DIG
-p
${
PORT
}
@10.53.0.1 version.bind txt ch
>
dig.out.verify
||
ret
=
1
grep
"status: NOERROR"
dig.out.verify
>
/dev/null
||
ret
=
1
if
[
$ret
-eq
1
]
;
then
echo_i
"failed"
;
status
=
1
fi
echo_i
"exit status:
$status
"
[
$status
-eq
0
]
||
exit
1
util/copyrights
View file @
cb61e1dd
...
...
@@ -863,6 +863,7 @@
./bin/tests/system/tools/clean.sh SH 2017,2018,2019,2020
./bin/tests/system/tools/setup.sh SH 2019,2020
./bin/tests/system/tools/tests.sh SH 2017,2018,2019,2020
./bin/tests/system/tsig/badtime X 2020
./bin/tests/system/tsig/clean.sh SH 2005,2006,2007,2012,2014,2016,2018,2019,2020
./bin/tests/system/tsig/setup.sh SH 2016,2017,2018,2019,2020
./bin/tests/system/tsig/tests.sh SH 2005,2006,2007,2011,2012,2016,2018,2019,2020
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment