]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- xfr-tsig, test cases for BADTRUNC and not parseable.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 25 Jun 2025 12:19:22 +0000 (14:19 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 25 Jun 2025 12:19:22 +0000 (14:19 +0200)
testdata/tsig_test.1

index 8703f6f5a12d3f1fc23b54fd153ec211038f6aa1..bf3feb9a56faaa1d7c4d9ece74a376b5e83c1535 100644 (file)
@@ -117,6 +117,31 @@ endpacket
 
 tsig-verify-query test.key 1750419725 NOTAUTH BADKEY 0
 
+# truncated hash
+packet
+e707002000010000000000020377777707657861
+6d706c65036e6574000001000100002910000000
+000000000474657374036b65790000fa00ff0000
+0000003408686d61632d6d6435077369672d616c
+670372656703696e740000006855490d012c000a
+c00e00f1bafa240f41eee7070000
+0000
+endpacket
+
+tsig-verify-query test.key 1750419725 NOTAUTH BADTRUNC 0
+
+# TSIG does not parse, removed bytes from the end.
+packet
+e707002000010000000000020377777707657861
+6d706c65036e6574000001000100002910000000
+000000000474657374036b65790000fa00ff0000
+0000003a08686d61632d6d6435077369672d616c
+670372656703696e740000006855490d012c0010
+c00e00f1bafa240f41ee9cbe507b9802
+endpacket
+
+tsig-verify-query . 1750419725 FORMERR NOERROR 0
+
 # reply for www.example.net A
 #packet
 #e7078400000100010000000203777777076578616d706c65036e65740000010001c00c0001000100000e1000040a141e2800002904d00000000000000474657374036b65790000fa00ff00000000003a08686d61632d6d6435077369672d616c670372656703696e740000006855490d012c0010dc3c138476fcb04cc138aa5c59647b86e70700000000